📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

为什么这个错误发生 #

index_shard_started_exception 表示尝试对一个已经启动的分片执行启动操作。

如何修复 #

1. 检查分片状态 #

GET /_cat/shards?v

2. 无需操作 #

分片已启动是正常状态。

3. 如果需要重启 #

POST /_cluster/reroute
{
  "commands": [{
    "move": {
      "index": "<index>",
      "shard": 0,
      "from_node": "node1",
      "to_node": "node2"
    }
  }]
}

预防措施 #

  • 避免重复启动分片