elasticsearch 異常


1.  Cannot open file logs/gc.log due to Permission denied

    不能用root賬戶啟動es,需要用es賬戶啟動。  su essearch ./bin/elasticsearch

   如果出現以上問題,則是因為用root啟動過導致。到elasticsearch中的log中刪除gc.log文件即可。

2. elasticsearch 啟動不起來

   當logstash正大量擁堵要寫入的數據時,es是無法啟動的負載太高,需要臨時停止logstash作業。

 3. 健康狀態一直處於警告,es壞節點較多,無法分片

#重新分配
POST /_cluster/reroute?retry_failed=true
#查看集群狀態
GET _cluster/health?pretty

4. logstash啟動  nohup bin/logstash -f config/kafka2es.conf &>/dev/null &

5.Validation Failed: 1: this action would add [1] total shards, but this cluster currently has [1000]

  es報錯無法創建多余的分片,可調整分片數

PUT /_cluster/settings
{
  "transient": {
    "cluster": {
      "max_shards_per_node":10000
    }
  }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM