I am trying to use Jest Client for REST calls to find elasticity. I get the following error on the line 'JestClient client = factory.getObject ();':
An exception in the "main" stream java.lang.NoSuchMethodError: io.searchbox.client.config.HttpClientConfig.isRequestCompressionEnabled () Z in io.searchbox.client.JestClientFactory.getObject (JestClientFactory.java.java. java: 22)
Below is the code:
JestClientFactory factory = new JestClientFactory();
factory.setHttpClientConfig(new HttpClientConfig
.Builder("http://localhost:9200")
.multiThreaded(true)
.build());
JestClient client = factory.getObject();
Any resolution will really help. Thank:)
source
share