ES 插入报错:‘blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

这里是因为es开启了只读模式,不能进行写入的操作了
我们先看一下是不是

http://192.168.130.28:9200/索引/_settings?pretty

如果是的话,
我们直接在终端执行

curl -XPUT '192.168.130.28:9200/索引/_settings'  -H 'Content-Type: application/json' -d '{"index.blocks.read_only_allow_delete": null}'

你可能感兴趣的:(ES 插入报错:‘blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];)