Hello All Problem Resolvers,
We have 3 nodes for elasticsearch 5.5.1. Lets say N1,N2 and N3. All three nodes have been made master node.
Each of this node is running on single VM. Lets say V1, V2 and V3. So;
- N1 (Elasticsearch 5.5.1) is running on (virtaul machine) V1.
- N2 (Elasticsearch 5.5.1) is running on (virtaul machine) V2.
- N3 (Elasticsearch 5.5.1) is running on (virtaul machine) V3.
Below is the contents of the elasticsearch.yml file
network.host: 192.168.213.25
network.bind_host: '0.0.0.0'
transport.bind_host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
http.port: 9200
indices.query.bool.max_clause_count: 10240
bootstrap.system_call_filter: false
cluster.name: qa-cluster
node.name: esupgrade-1-ddqa
node.master: true
gateway.expected_nodes: 1
discovery.zen.minimum_master_nodes: 1
discovery.zen.ping_timeout: 30s
discovery.zen.ping.unicast.hosts: ["192.168.213.19","192.168.213.24","192.168.213.25"]
transport.publish_host: "_eth2:ipv4_"
network.publish_host: "_eth2:ipv4_"
action.auto_create_index: true
transport.tcp.compress: true
thread_pool.index.queue_size: 10000
thread_pool.search.size: 1000
thread_pool.search.queue_size: 10000
thread_pool.get.queue_size : 10000
## Add CORS Support
http.cors.enabled : true
http.cors.allow-origin: "/.*/"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
http.max_content_length : 500mb
=============================================================================
Now, the cluster is started and when we try to connect to the Elasticsearch from java client, we get the below exception
NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{qVvJFIi5QUSnf0T6cWi0_g}{192.168.213.25}{192.168.213.25:9300}, {#transport#-2}{4vF9hGcUQoig0tXDIZ6UHA}{192.168.213.19}{192.168.213.19:9300}, {#transport#-3}{eM0M7jcwRjWc7iYPH2ncQw}{192.168.213.24}{192.168.213.24:9300}]]
Someone here, suggest me how to fix this issue.
Regards,
Maney