I am working up a system with elasticsearch 5.6.2, I did a rolling update to elasticsearch 6.1.3 but something went wrong with the existing applications, so i reverted back to v5.6.2. The Issue I am facing is, my cluster has formed but the status is RED and when I check the status of any shard from any index, below is the json:
{
"state": "UNASSIGNED",
"primary": true,
"node": null,
"relocating_node": null,
"shard": 1,
"index": "pu_reviews_prod_db",
"recovery_source": {
"type": "EXISTING_STORE"
},
"unassigned_info": {
"reason": "CLUSTER_RECOVERED",
"at": "2018-02-03T19:44:53.350Z",
"delayed": false,
"allocation_status": "no_valid_shard_copy"
}
}
How do i bring back the data? I have 10 indices, all shards for each of them have the same response (with their own index names).
I was trying to manually allocate using the below query:
POST http:// serverIP /_cluster/reroute
{
"commands": [
{
"allocate": {
"index": "pu_reviews_prod_db",
"shard": "0",
"node": "ates-data-01",
"allow_primary": 1
}
}
]
}
but it gives me a error response Unknown AllocationCommand [allocate]
How can I bring it back up?