elasticsearch 子节点有Unassigned Shards处理方法 和 failed to obtain in-memory shard lock

1、查找原因,找到未知道的node,shard

http://localhost:9200/_cluster/allocation/explain?pretty

POST /_cluster/reroute?retry_failed=true
{
"commands" : [

{
"allocate_replica" : {
"index" : "myindex",
"shard" : 1,
"node" : "mynode"
}
}
]
}

原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/11024735.html