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文件最后添加一行

vm.max_map_count=262144

  

 

报错二:

报错:

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,生产环境必填

处理办法
修改配置文件,添加参数即可

vim config/elasticsearch.yml
#添加配置
discovery.seed_hosts: ["127.0.0.1"]
cluster.initial_master_nodes: ["node-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下面:

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

  

 

posted @ 2023-02-15 10:50  linuxws  阅读(21)  评论(0编辑  收藏  举报