When asking questions, please provide the following information:
* Search Guard and Elasticsearch version 6.0.0
* Installed and used enterprise modules, if any No
* JVM version and operating system version 1.7
* Search Guard configuration files
* Elasticsearch log messages on debug level
* Other installed Elasticsearch or Kibana plugins, if any
Hi,
I have installed searchguard and it is working properly. But my java client (Transport Client) not getting connected to elasticseach.
I have used searchguard ssl jar. and my configuration is like below.
Settings settings = Settings.builder()
.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.
Thanks,
Ajit