I have made an Elasticsearch cluster of 3 nodes but one of the node is not joining the cluster.
Below are my elasticsearch.yml file for all 3 nodes.
NODE1
cluster.name: ES-Cluster
node.name: node-1
node.master: true
node.data: false
path.data: /solr-index/Elasticsearch/Elasticdata/elasticsearch
path.logs: /solr-index/Elasticsearch/elasticsearch
network.host: ip_node_1
http.port: 9200
transport.port: 9300
discovery.zen.ping.unicast.hosts: ["ip_node_1", "ip_node_2", "ip_node_3"]
cluster.initial_master_nodes: ["node-1", "node-2", "node-3"]
discovery.zen.minimum_master_nodes: 2
NODE2
cluster.name: ES-Cluster
node.name: node-2
node.master: true
node.data: true
path.data: /solr-index/Elasticsearch/Elasticdata/elasticsearch
path.logs: /solr-index/Elasticsearch/elasticsearch
network.host: ip_node_2
http.port: 9200
transport.port: 9300
discovery.zen.ping.unicast.hosts: ["ip_node_1", "ip_node_2", "ip_node_3"]
cluster.initial_master_nodes: ["node-1", "node-2", "node-3"]
discovery.zen.minimum_master_nodes: 2
NODE3
cluster.name: ES-Cluster
node.name: node-3
path.data: /solr-index/Elasticsearch/Elasticdata/elasticsearch
path.logs: /solr-index/Elasticsearch/elasticsearch
network.host: ip_node_3
http.port: 9200
transport.port: 9300
discovery.zen.ping.unicast.hosts: ["ip_node_1", "ip_node_2", "ip_node_3"]
cluster.initial_master_nodes: ["node-1", "node-2", "node-3"]
discovery.zen.minimum_master_nodes: 2
All three nodes are in green status. PFB the output of curl -XGET 'http://private_ip:9200/_cluster/health?pretty' for all three node
NODE1
{
"cluster_name" : "ES-Cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 2,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
NODE2
{
"cluster_name" : "ES-Cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 2,
"active_primary_shards" : 12,
"active_shards" : 19,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
NODE3
{
"cluster_name" : "ES-Cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 2,
"active_primary_shards" : 12,
"active_shards" : 19,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
Please help in resolving this issue as I am not able to proceed further because my cluster of 3 node is not getting formed. Also please let me know if any other input is required to help me out on this issue.
Thanks