0
点赞
收藏
分享

微信扫一扫

Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index r【已解决】


​亲测 2022/08/16 BJ​

文章目录

  • ​​异常​​
  • ​​原因​​
  • ​​解决​​

异常

Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)

Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index r【已解决】_sed

原因

集群存储资源高水位异常,默认当磁盘空间大于95%时,就会禁止写入。

解决

  1. 首先让es节点腾出足够的空间、
    删除磁盘数据 ; 扩容。
  2. 执行恢复命令

PUT _settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}

让es恢复到可写入状态。问题解决!

Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index r【已解决】_数据_02


举报

相关推荐

0 条评论