Elasticsearch常见的启动报错

报错一:unable to install syscall filter

解决方法:

  1. 编辑elasticsearch.yml
  2. 在最下面添加如下配置
bootstrap.system_call_filter: false

报错二:[1]: max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

解决方法:

  1. 首先用root用户登录
  2. 修改配置文件
vim /etc/security/limits.conf

添加下面的内容

* soft nofile 65536

* hard nofile 131072

* soft nproc 4096

* hard nproc 4096

报错三:[1]: max number of threads [1024] for user [***] is too low, increase to at least [4096]

解决方法:
修改配置

vim /etc/security/limits.d/90-nproc.conf 

修改下面的内容

* soft nproc 1024

改为

* soft nproc 4096

报错四:[3]: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

解决方法:
修改配置文件

vim /etc/sysctl.conf 

添加下面内容

vm.max_map_count=655360

执行命令

sysctl -p

报错五:master_not_discovered_exception

解决方法:

  1. 输入hostname查看主机名
  2. 编辑elasticsearch.yml,放开注释
node.name:主机名

报错六:master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster或者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

解决方法:

  1. 编辑elasticsearch.yml,指定seed_hosts
discovery.seed_hosts: ["主机名"]
  1. 指定master节点
cluster.initial_master_nodes: ["主机名"]
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

脉脉情缘

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值