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);
System.out.println("Start client");
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?
Hello,
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!!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.