Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

问题详情

 

  我的es集群,开启后,都好久了,一直报red状态???

 

Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

 

 

 Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

 

 

 

 

 

   问题分析

  有两个分片数据好像丢了。

   不知道你这数据怎么丢的。
确认下本地到底还有没有,本地要是确认没了,那数据就丢了,删除索引重建吧 
 
 
   删除,是这三个索引库
  Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

 

 
 

 

 

 

 

 解决方法(一般若是作为测试而言的索引库的话,这么干)

 Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)
[[email protected] config]$ ll
total 12
-rw-rw-r-- 1 hadoop hadoop 3393 Jul  5 22:19 elasticsearch.yml
-rw-rw-r-- 1 hadoop hadoop 2571 Aug 24  2016 logging.yml
drwxrwxr-x 2 hadoop hadoop 4096 Apr 21 15:43 scripts
[[email protected] config]$ vim elasticsearch.yml 
[[email protected] config]$ cd ..
[[email protected] elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/zhouls'
{"acknowledged":true}[[email protected] elasticsearch-2.4.0]$ 
[[email protected] elasticsearch-2.4.0]$ 
[[email protected] elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/zhouls2'
{"acknowledged":true}[[email protected] elasticsearch-2.4.0]$ 
[[email protected] elasticsearch-2.4.0]$ 
[[email protected] elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/.marvel-es-1-2017.04.22'
{"acknowledged":true}[[email protected] elasticsearch-2.4.0]$ 
[[email protected] elasticsearch-2.4.0]$ 
Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

 

 

 

 

 

Elasticsearch集群状态健康值处于red状态问题分析与解决(图文详解)

 

   

   问题得以解决!


本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/7124199.html,如需转载请自行联系原作者