問題詳情
我的es集群,開啟后,都好久了,一直報red狀態???
問題分析
有兩個分片數據好像丟了。
不知道你這數據怎么丟的。
確認下本地到底還有沒有,本地要是確認沒了,那數據就丟了,刪除索引重建吧
確認下本地到底還有沒有,本地要是確認沒了,那數據就丟了,刪除索引重建吧
刪除,是這三個索引庫

解決方法(一般若是作為測試而言的索引庫的話,這么干)
[hadoop@master 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 [hadoop@master config]$ vim elasticsearch.yml [hadoop@master config]$ cd .. [hadoop@master elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/zhouls' {"acknowledged":true}[hadoop@master elasticsearch-2.4.0]$ [hadoop@master elasticsearch-2.4.0]$ [hadoop@master elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/zhouls2' {"acknowledged":true}[hadoop@master elasticsearch-2.4.0]$ [hadoop@master elasticsearch-2.4.0]$ [hadoop@master elasticsearch-2.4.0]$ curl -XDELETE 'http://192.168.80.145:9200/.marvel-es-1-2017.04.22' {"acknowledged":true}[hadoop@master elasticsearch-2.4.0]$ [hadoop@master elasticsearch-2.4.0]$
問題得以解決!