ElasticSearch 相关
字段类型
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html
解决 ElasticSearch ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- 查看硬盘是否足够:
df -h
- 如果不够的话:可以调整 es 设置:
1 | # 控制洪水阶段水印。它默认为95% |
磁盘够了之后需要手动释放 3.
1 | curl -XPUT -H "Content-Type: application/json" http://node.com:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}' |
或者
1 | PUT /all/_settings |
- ElasticSearch 常见的报错及解决_彭世瑜的博客-CSDN 博客
- [解决:ElasticSearch ClusterBlockExceptionblocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; - 东北小狐狸 - 博客园