重置副本数
curl -X PUT “http://127.0.0.1:9200/_settings” -H ‘Content-Type: application/json’ -d ‘{“index”:{“number_of_replicas”:0}}’
索引只读,403没有权限
{“error”:
{“root_cause”:[{“type”:“cluster_block_exception”,“reason”:“blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];”}],
“type”:“cluster_block_exception”,“reason”:“blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];”},“status”:403}
解决办法:
curl -XPUT -H “Content-Type: application/json” http://127.0.0.1:9200/_all/_settings -d ‘{“index.blocks.read_only_allow_delete”: null}’
查看索引所占空间大小
http://127.0.0.1:9200/_cat/indices?v&s=store.size:asc