ElasticSearch7搭建注意事項

1.Jdk版本必定要同樣node

2.明確設置那個節點是主節點,那個節點是數據節點node.master屬性(主節點屬性設置爲true,數據節點設置爲false,固然主節點也能夠存儲數據)git

3.pack.ml.enabled: false
若是不須要使用machine learning功能,則能夠在elasticsearch.yml中設置禁用:
4.異常org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
    緣由:ElasticSearch節點之間的jdk版本不一致github

5.異常org.elasticsearch.cluster.coordination.CoordinationStateRejectedException: join validation on cluster state with a different cluster uuid DGeDa4wNQ7OnyZyxWJRS_w than local cluster uuid u5-SNBcDR3mQHj0Vm-whVQ, rejecting
    緣由兩個獨立的集羣 無法加入一個集羣 應該刪除對應的data數據(就是yml裏面對應的data和logs裏面的數據,重啓服務)bootstrap

6.異常[node-2] master not discovered yet: have discovered [{node-1}
    緣由:要初始化master,在E的yml配置文件中,以下:
    cluster.initial_master_nodes: [「192.168.1.3」]elasticsearch

7.異常Unsupported major.minor version 52.0
    緣由:jdk版本過低ui

8.異常bin/elasticsearch-plugin install license ERROR: Unknown plugin license
緣由:ElasticSearch5.0.0之後插件命令已經改變
解決方案:bin/elasticsearch-plugin install x-pack插件

9.啓動異常:ERROR: bootstrap checks failed system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own riskget

    緣由:由於Centos6不支持SecComp,而ES5.2.1默認bootstrap.system_call_filter爲true進行檢測,因此致使檢測失敗,失敗後直接致使ES不能啓動。詳見 :https://github.com/elastic/elasticsearch/issues/22899
    解決方案:在elasticsearch.yml中配置bootstrap.system_call_filter爲false,注意要在Memory下面
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: falseit

相關文章
相關標籤/搜索