【发布时间】:2018-06-10 11:42:59
【问题描述】:
当我尝试在 elasticsearch 中存储任何内容时,出现错误提示:
TransportError(403, u'cluster_block_exception', u'blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];')
我已经在我的索引中插入了大约 2 亿个文档。但我不知道为什么会发生这个错误。 我试过了:
curl -u elastic:changeme -XPUT 'localhost:9200/_cluster/settings' -H 'Content-Type: application/json' -d '{"persistent":{"cluster.blocks.read_only":false}}'
正如这里提到的: ElasticSearch entered "read only" mode, node cannot be altered
结果是:
{"acknowledged":true,"persistent":{"cluster":{"blocks":{"read_only":"false"}}},"transient":{}}
但没有任何改变。我该怎么办?
【问题讨论】:
标签: elasticsearch elasticsearch-5