报错信息
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"failed to resolve [1.es2], no matching nodes"}],"type":"illegal_argument_exception","reason":"failed to resolve [1.es2], no matching nodes"},"status":400}
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"[allocate_empty_primary] primary [indexName][13] is already assigned"}],"type":"illegal_argument_exception","reason":"[allocate_empty_primary] primary [indexName][13] is already assigned"},"status":400}
处理办法
先停止副本分片
PUT index name*/_settings{"number_of_replicas":0}
再开启分片
PUT index name*/_settings{"number_of_replicas":1}