I have an instance ES 5.2 local. I tried connect to the ES node using TransportClient but not sucess. The java client hangs on this command: TransportClient client = new PreBuiltTransportClient
Here is the code
Settings settings = Settings.builder().put("cluster.name", "my-elasticsearch-cluster-name").build();
//TransportClient client = new PreBuiltTransportClient(settings);
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY);
this.client = client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(endPoint), port));
Am I missing somethings? Why is there no error messages but the Client hangs forever? Could the error be somewhere else?
Has anyone run into the same problem? PLs share your solutions...
I have no problem with my old cluster 1.x but this new ES 5.2 gives this error!!
Having exactly the same issue with 5.1 client & server. Would appreciate any insight on what can be happening.
Please take a stack dump of the process when it's hung (use
jstack) in the constructor and share it here.
You need to make sure you have downloaded the dependencies for the PreBuiltTransportClient.
Pay attention to the release you have.
I've solved mine by adding these 2 dependencies to my build.gradle
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.