elasticsearch出現 index_closed_exception

訪問kibana http://192.168.0.107:5601/app/kibana

出現了下面的異常提示:

{"message":"closed: [index_closed_exception] closed, with { index_uuid=\"UyZYuT7lQWuLhIhZa0wVOg\" & index=\".kibana\" }","statusCode":400,"error":"Bad Request"}

然後去查看elasticsearch容器日誌,有下面的異常

java.io.FileNotFoundException: /usr/share/elasticsearch/config/analysis-ik/IKAnalyzer.cfg.xml (No such file or directory)

然後進入的elasticsearch容器,查找問題,發現上面路徑不存在,IKAnalyzer.cfg.xml文件也找不到。

於是,決定刪除了容器中的分詞器試試,然後再安裝。

docker exec -it elasticsearch /bin/bash
#此命令需要在容器中運行
elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.4.0/elasticsearch-analysis-ik-6.4.0.zip
docker restart elasticsearch

重新安裝分詞器後,上面異常就沒有了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章