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

相关文章
相关标签/搜索