NoNodeAvailableException[None of the configured nodesare available: [...]]


(Zeldax149) #1

This is my first time trying to connect to elasticsearch (running on my local machine) through java code and I am getting the NoNodeAvailableException.

I have checked that the cluster_name and transport_addres set by the java code are same as in the Kibana console.


(Zeldax149) #2

Problem solved !

X-Pack was blocking Java code to access the Nodes.

fix...
added this line in the elasticsearch.yml file:
xpack.security.enabled: false


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.