Elasticsearch cluster health: yellow unassigned shards

查看ES各个分片的状态

$ curl -XGET http://127.0.0.1:9200/_cluster/health?pretty
{
  "cluster_name" : "elasticsearch_brew",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 350,
  "active_shards" : 350,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 3,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

Elasticsearch单台,增加kibana监控,集群状态总是黄色,索引kibana副本有问题,我ES里设置了一个

直接执行下列命令,删除多余副本

curl -XPUT "http://localhost:9200/_settings" -d'
{
  "number_of_replicas" : 0
}'

 

posted @ 2015-07-16 15:41  悟寰轩-叶秋  阅读(4077)  评论(0编辑  收藏  举报