1、查找UNASSIGNED未分片的索引:

#curl -s "http://localhost:9200/_cat/shards" -u username:passwd | grep UNASSIGNED

2、找一台数据节点的唯一标识:172.16.16.44434546)都可以

#curl 'localhost:9200/_nodes/process?pretty' -u username:passwd

3、修复logstash-foo-2016.12.19索引shard数表示UNASSIGNED查到的未分片索引的标志

curl -XPOST 'localhost:9200/_cluster/reroute' -u username:passwd -d '{

         "commands" : [ {

               "allocate" : {

                  "index" : "logstash-foo-2016.12.19",

                   "shard" : 3,

                   "node" : "w_kwzooiQ329VTcDlKnp8Q",

                   "allow_primary" : true

              }

             }

         ]

     }'

相关文章:

  • 2021-10-16
  • 2021-10-12
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-12-21
  • 2021-05-26
  • 2021-05-06
相关资源
相似解决方案