I'm getting mentioned error in 5.6.3.
NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{Lx1sIaSdTpCXG_fZQY5p1A}{127.0.0.1}{127.0.0.1:9300}]]
curl "localhost:9200"
{
"name" : "",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "",
"version" : {
"number" : "5.6.3",
"build_hash" : "",
"build_date" : "2017-10-06T20:33:39.012Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}
I searched all topics realted to this error , nothing helped really
esClient = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("127.0.0.1"),9300));
I'm using settings.EMPTY as my cluster name is commented in elasticsearch.yml
network.host: 127.0.0.1
transport.tcp.port: 9300