I am building up my TransportClient using correct cluster name:
Settings settings = Settings.builder().put("cluster.name", "myClusterName").build();
Everything works perfectly fine when I deploy my Java code and run ElasticSearch on same Linux box. I use localhost
when querying ElasticSearch.
When I try to connect ElasticSearch on Linux box using my local windows machine by using LinuxBoxHostName
, it throws:
NoNodeAvailableException[None of the configured nodes are available
ElasticSearch.yml file have below entries:
network.host: 127.0.0.1
http.host: 127.0.0.1
Please help me understand how to connect.