Closed rremigius closed 7 years ago
I was facing the same issue. Update the function getJestClient
as below which solved my problem.
private JestClient getJestClient(final String hostName) throws Throwable { JestClientFactory factory = new JestClientFactory(); factory.setHttpClientConfig( new HttpClientConfig.Builder(hostName).multiThreaded(true).readTimeout(60000).build()); return factory.getObject(); }
Hope it solves your problem as well.
I am getting the same error when testing the integration with ElasticSearch 5.1 and indexes are not created. Please advise.
@barathank Have you made changes in the code I specified above?
@santosh-hegde Your update works, thanks!
Running the tests with Elasticsearch 5.1, the ElasticSearchEventHandlerIntegrationTest fails with the following exception in the console: