ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

elasticsearch使用中报了错误:

  • ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
  • 返回错误403;
    ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];_第1张图片
    查看es的日志也会发现报同样的错误。

解决办法:
1.按照官方给的解决思路,在 Eleastisearch 的机器上执行:

curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

2.磁盘空间可能不足,清理磁盘后重启kibana。

你可能感兴趣的:(ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];)