I installed elastic search on 2 servers with different ips. and they are found in the cluster one master and one data node and their names are master and data. when I was trying to run kibana on the master it kept hanging on missing shards so I ran cluster health and got
"cluster_name" : "elastic",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 1,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1,
"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" : 0.0
}
after that I used curl -X GET "localhost:9200/_cluster/allocation/explain'
{
"index" : ".kibana_1",
"shard" : 0,
"primary" : true,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2019-01-23T10:27:59.262Z",
"last_allocation_status" : "no_valid_shard_copy"
},
"can_allocate" : "no_valid_shard_copy",
"allocate_explanation" : "cannot allocate because a previous copy of the primary shard existed but can no longer be found on the nodes in the cluster",
"node_allocation_decisions" : [
{
"node_id" : "seAK3Tv6ScKi408Y5-QoNA",
"node_name" : "data",
"transport_address" : "172.18.25.35:9300",
"node_attributes" : {
"ml.machine_memory" : "16657784832",
"ml.max_open_jobs" : "20",
"xpack.installed" : "true",
"ml.enabled" : "true"
},
"node_decision" : "no",
"store" : {
"found" : false
}
}
]
}
how can I fix this