Elasticsearch报错汇总

一、配置elasticsearch.yml文件错误

  1. Elasticsearch8.4.0版本,配置文件中集群通信端口的配置名是transport.port,而7.几的是transport.tcp.port

二、启动ES服务失败报错

  1. 问题:max number of threads [3795] for user [es] is too low
    修改配置文件:vim /etc/security/limits.conf,添加如下配置

    * soft nproc 5000
    * hard nproc 5000
    
  2. 问题:max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
    修改配置文件:vim /etc/security/limits.conf,添加如下配置

    es soft nofile 65535
    es hard nofile 65537
    
  3. 问题:bootstrap check failure [1] of [1]: Transport SSL must be enabled if security is enabled. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]
    修改配置文件:vim /usr/local/elasticsearch-8.4.0/config/elasticsearch.yml,添加如下

    #关闭安全认证,才能访问es
    xpack.security.enabled: false
    xpack.security.http.ssl:
    			   enabled: false
    
  4. 问题:“Action failed with [index_not_yellow_timeout] Timeout waiting for the status of the [.kibana_8.1.0_001] index to become “yellow”. Retrying attempt 1 in 2 seconds.”
    Elasticsearch8.3.0和8.4.0版本集群搭建成功后,启动kibana时,报上述异常,kibana无法连接上ES集群服务,等待集群状态变绿,百度搜查一天也没找到真正的解决方法,大概就是说未进行分片操作,但是也不知道怎么操作。搭建7.x版本的ES集群时,集群状态为非绿色,kibana也能连接到ES集群服务。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值