关于启动ElasticSearch疯狂失败这件事

本文介绍了启动ElasticSearch 7.4.2时遇到的问题及解决方法。包括配置文件格式错误、文件描述符限制、线程数不足、虚拟内存区域限制以及系统调用过滤器安装失败等问题。通过修改相关配置文件如limits.conf、limits.d/90-nproc.conf、sysctl.conf,并调整ElasticSearch的bootstrap.system_call_filter设置,最终成功启动ElasticSearch。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用背景浅浅介绍:nojdk版的es 7.4.2
首先在刚刚修改完配置文件后,切换到es用户后第一次启动(es不让root用户启动)
出现第一个问题:
这里可以看出是配置文件哪里出了问题

Exception in thread “main” SettingsException[Failed to load settings
from [elasticsearch.yml]]; nested:
ElasticsearchParseException[malformed, expected settings to start with
‘object’, instead was [VALUE_STRING]];

其实是格式出现问题
解决方法:在每个没有被注释掉的配置行的头需要一个空格,冒号后需要一个空格。

第二次启动
再次出现问题

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [3818] for user [es] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]: system call filters failed to install; check the logs and fix your configuration or disable sys

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值