1.  Cannot open file logs/gc.log due to Permission denied

    不能用root账户启动es,需要用es账户启动。  su essearch ./bin/elasticsearch

   如果出现以上问题,则是因为用root启动过导致。到elasticsearch中的log中删除gc.log文件即可。

2. elasticsearch 启动不起来

   当logstash正大量拥堵要写入的数据时,es是无法启动的负载太高,需要临时停止logstash作业。

 3. 健康状态一直处于警告,es坏节点较多,无法分片

#重新分配
POST /_cluster/reroute?retry_failed=true
#查看集群状态
GET _cluster/health?pretty

4. logstash启动  nohup bin/logstash -f config/kafka2es.conf &>/dev/null &

5.Validation Failed: 1: this action would add [1] total shards, but this cluster currently has [1000]

  es报错无法创建多余的分片,可调整分片数

PUT /_cluster/settings
{
  "transient": {
    "cluster": {
      "max_shards_per_node":10000
    }
  }

 

6. json数据写入es提示_jsonparsefailure 原因

    json格式不支持回车换行符,因此需要将json数据中的\n  \r,变为\\n 这样es就会识别\\n \\r为换行回车。在页面展示。

    es也不支持Tab的Space符 \t,需要提前处理。  文本中的双引号也要注意。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-08-19
  • 2022-12-23
  • 2021-06-11
  • 2021-08-26
  • 2021-05-30
猜你喜欢
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案