I have two nodes as below which belong to the same cluster elasticsearch. However, the number of nodes showing only 1 instead of 2. How to form a cluster?
{
"name" : "OANlHwb",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "hHfTcg_BTfOH9PBkuOXXww",
"version" : {
"number" : "6.0.0",
"build_hash" : "8f0685b",
"build_date" : "2017-11-10T18:41:22.859Z",
"build_snapshot" : false,
"lucene_version" : "7.0.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 2291,
"active_shards" : 2291,
"relocating_shards" : 0,
"initializing_shards" : 4,
"unassigned_shards" : 2423,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 11,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 450065,
"active_shards_percent_as_number" : 48.558711318355236
}
{
"name" : "DMSUATOWAS",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Wo11S5vZT_akDT5CHKkeIA",
"version" : {
"number" : "6.0.0",
"build_hash" : "8f0685b",
"build_date" : "2017-11-10T18:41:22.859Z",
"build_snapshot" : false,
"lucene_version" : "7.0.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5018,
"active_shards" : 5018,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5018,
"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
}