Transport client not working after installation of searchguard.

25 views
Skip to first unread message

Ajit Bhosale

unread,
Jan 31, 2018, 1:38:55 AM1/31/18
to Search Guard Community Forum
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("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.

Thanks,
Ajit

SG

unread,
Feb 1, 2018, 3:46:57 PM2/1/18
to search...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages