Transport client not working with search guard


(ajit) #1

Hi,
I have successfully implemented searchguard in elasticsearch. But from java side Transport client not working now. Below is my configuration.

Settings settings = Settings.builder()
.put("cluster.name", "searchguard_demo")
.put(SSLConfigConstants.SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_FILEPATH,"C:\Users\c-ajitb\Desktop\SearchguardFiles\esnode.pem")
.put(SSLConfigConstants.SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_FILEPATH, "C:\Users\c-ajitb\Desktop\SearchguardFiles\esnode-key.pem")
.put(SSLConfigConstants.SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_PASSWORD, "admin")
.put(SSLConfigConstants.SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_PASSWORD, "admin")
.build();
TransportClient transclient = new PreBuiltTransportClient(settings,SearchGuardSSLPlugin.class).addTransportAddress(
new InetSocketTransportAddress(new InetSocketAddress("172.21.153.176", 9300)));

It is giving exception ElasticsearchException[Failed to load plugin class [com.floragunn.searchguard.ssl.SearchGuardSSLPlugin]]; nested: InvocationTargetException; nested: NoSuchMethodError[org.elasticsearch.common.logging.Loggers.getLogger(Ljava/lang/Class;)Lorg/elasticsearch/common/logging/ESLogger;];

Also please check my file names. I dont have keystore and truststore files in my searchguard configuartion.
Please provide solution.
I am using 6.0.0 versions.

Thanks,
Ajit


Elasticsearch 6.0.0 Base64 not found
(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.