在修改elasticSearch的配置文件后,启动es,报错
1、错误一
max virtual memory areas vm.max_map_count [65530] likely too low,
increase to at least [262144]
max file descriptors [4096] for elasticsearch process likely too low,
increase to at least [65536]
解决
(1)、sudo vi /etc/security/limits.conf
在后面追加下面两行 * 表示所有用户,可打开的文件数目最大是65536
(2)sudo vi /etc/sysctl.conf , 添加一行 vm.max_map_count=262144
2、错误2 max number of threads [1024] for user [bigdata] is too low, increase to at least [2048] 修改 sudo vi
/etc/security/limits.d/90-nproc.conf 修改如下内容:
* soft nproc 1024
修改为
* soft nproc 2048
3、错误3 system call filters failed to install; check the lo

在CentOS6上安装elasticsearch时遇到了多个错误,包括系统调用过滤器失败、最大线程数过低和集群连接问题。通过修改limits.conf、sysctl.conf配置文件以及elasticsearch.yml来解决这些问题,如增加可打开文件的最大数量、提升用户最大线程数,并禁用系统调用过滤器。然而,尝试加入集群时仍出现'master_not_discovered_exception',可能需要检查节点间通信和集群配置。

最低0.47元/天 解锁文章
1712

被折叠的 条评论
为什么被折叠?



