简体   繁体   English

配置 elasticsearch 集群时出错

[英]Error in configuring elasticsearch cluster

I'm configuring three node elasticsearch cluster.我正在配置三节点 elasticsearch 集群。 I'm getting following error while try to start first node using following尝试使用以下方法启动第一个节点时出现以下错误

startup command启动命令

[cloud_user@mishai3c elasticsearch-6.2.4]$ ./bin/elasticsearch -d -p pid

error message错误信息

[2019-11-11T04:50:39,634][INFO ][o.e.b.BootstrapChecks    ] [master] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-11-11T04:50:39,636][ERROR][o.e.b.Bootstrap          ] [master] node validation exception
[1] bootstrap checks failed
[1]: max number of threads [3581] for user [cloud_user] is too low, increase to at least [4096]
[2019-11-11T04:50:39,666][INFO ][o.e.n.Node               ] [master] stopping ...

I have tried to set up ulimit in /etc/security/limits.conf file by adding following line我试图通过添加以下行在 /etc/security/limits.conf 文件中设置 ulimit

@cloud_user      hard    nproc           4096

It's highly appriciate if anyone can help如果有人可以提供帮助,那就太感谢了

After changing limit.conf file,I have checked max thread limit by running ulimit -u command in terminal it still show previous value then Then I logout and log into server and run ulimit -u command then it show 4096.更改 limit.conf 文件后,我通过在终端中运行 ulimit -u 命令检查了最大线程限制它仍然显示以前的值然后我注销并登录到服务器并运行 ulimit -u 命令然后它显示 4096。

Then I tried to start elasticsearch it works然后我尝试启动 elasticsearch 它工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM