目录


报错一: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: ["主机名"]
©本文为原创文章,著作权归博主所有,转载请联系博主获得授权

发表评论