本文主要是介绍ElasticSearch6 报错blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
原文链接:https://www.cnblogs.com/zhja/p/9717536.html
blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
官方解决方法:
curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
_all 可以改为自己的索引名称,也可以直接执行
curl -XPUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
这篇关于ElasticSearch6 报错blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!