es 6 报错 FORBIDDEN/12/index read-only / allow delete (api)

具体错误 ElasticSearch6 报错

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

导入数据导致某个节点数据占用100%,删除索引后无法增加数据。提示该错误

解决

官方解决方法:

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

_all 可以替换为出现错误的索引

转自: https://www.cnblogs.com/zhja/p/9717536.html

你可能感兴趣的:(程序人生)