温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ElasticSearch7搭建时要注意什么

发布时间:2021-07-02 16:05:03 来源:亿速云 阅读:410 作者:chen 栏目:大数据

这篇文章主要介绍“ElasticSearch7搭建时要注意什么”,在日常操作中,相信很多人在ElasticSearch7搭建时要注意什么问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”ElasticSearch7搭建时要注意什么”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

1.Jdk版本一定要一样

2.明确设置那个节点是主节点,那个节点是数据节点node.master属性(主节点属性设置为true,数据节点设置为false,当然主节点也可以存储数据)

3.pack.ml.enabled: false
如果不需要使用machine learning功能,则可以在elasticsearch.yml中设置禁用:
4.异常org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
    原因:ElasticSearch节点之间的jdk版本不一致

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里面的数据,重启服务)

6.异常[node-2] master not discovered yet: have discovered [{node-1}
    原因:要初始化master,在E的yml配置文件中,如下:
    cluster.initial_master_nodes: [“192.168.1.3”]

7.异常Unsupported major.minor version 52.0
    原因:jdk版本太低

8.异常bin/elasticsearch-plugin install license ERROR: Unknown plugin license
原因:ElasticSearch6.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 risk

    原因:因为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: false

到此,关于“ElasticSearch7搭建时要注意什么”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI