Hello there
I have a test cluster on aws ami with one node and i'm trying to add a new node to the same cluster and have installed elasticsearch of same version as in node 1, on an other aws instance.
Below are my node 1 and node 2 configs:
yml file of node 1:
cluster.name: Newcluster
node.name: ThisIsNode1
network.host: 0.0.0.0
http.port: 9200
node.master: true
yml file of node 2(newly added node):
cluster.name: Newcluster
node.name: ThisIsNode2
network.host: 0.0.0.0
http.port: 9200
discovery.zen.ping.unicast.hosts: ["Private ip of node1"]
Cluster health detail when running curl from each node:
Node1:
curl -X GET "private_ip_of_node1:9200/_cluster/health"
{"cluster_name":"Newcluster","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":66,"active_shards":66,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":66,"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":50.0}
Node2:
curl -X GET "private_ip_of_node2:9200/_cluster/health"
{"cluster_name":"Newcluster","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":66,"active_shards":66,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":66,"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":50.0}
telnet from node 1 to node 2 and vice versa works fine both on port 9200 and 9300.
Both the nodes, individually looks good but why is the second node not joining the cluster is my concern here. can anyone please help me out with this. I'm new to Elasticsearch.
Thanks