elasticsearch
报错一:
报错:ERROR: [3] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
报错分析:
这个错误是我在以自定义配置文件的方式启动ElasticSearch的时候报的错误:报错的原因是因为:elasticsearch用户拥有的内存权限太小,至少需要262144
/etc/sysctl.conf文件最后添加一行
1 | vm.max_map_count=262144 |
报错二:
报错:
1 2 | ERROR: [1] bootstrap checks failed [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured |
原因分析:
看提示可知:缺少默认配置,至少需要配置discovery.seed_hosts/discovery.seed_providers/cluster.initial_master_nodes中的一个参数.
- discovery.seed_hosts: 集群主机列表
- discovery.seed_providers: 基于配置文件配置集群主机列表
- cluster.initial_master_nodes: 启动时初始化的参与选主的node,生产环境必填
处理办法
修改配置文件,添加参数即可
1 2 3 4 | vim config /elasticsearch .yml #添加配置 discovery.seed_hosts: [ "127.0.0.1" ] cluster.initial_master_nodes: [ "node-1" ] |
报错三:
报错:
1 | [1]: 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.0默认bootstrap.system_call_filter为true
禁用:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
1 2 | bootstrap.memory_lock: false bootstrap.system_call_filter: false |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· .NET Core 中如何实现缓存的预热?
· 三行代码完成国际化适配,妙~啊~
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?