Elasticsearch - cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)]
生活随笔
收集整理的這篇文章主要介紹了
Elasticsearch - cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)]
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- Error
- 修復(fù)
- 擴(kuò)展
Error
{"error": "{\"type\":\"cluster_block_exception\",\"reason\":\"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];\"}","errorReason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];","errorType": "cluster_block_exception","id": "lpH2aXkBdAyiAR22_Nsh","index": "artisan","operation": "index","status": 403,"type": "artisan" }修復(fù)
在kibana中執(zhí)行
PUT artisan/_settings {"index.blocks.read_only_allow_delete": null }執(zhí)行完以后 無需重啟
或者主機(jī)上直接執(zhí)行如下command
curl -X PUT "localhost:9200/twitter/_settings?pretty" -H 'Content-Type: application/json' -d' {"index.blocks.read_only_allow_delete": null } ' curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'擴(kuò)展
6.4版本的 官方文檔:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/disk-allocator.html
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d' {"transient": {"cluster.routing.allocation.disk.watermark.low": "100gb","cluster.routing.allocation.disk.watermark.high": "50gb","cluster.routing.allocation.disk.watermark.flood_stage": "10gb","cluster.info.update.interval": "1m"} } '總結(jié)
以上是生活随笔為你收集整理的Elasticsearch - cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)]的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jvm性能调优实战 -60 线上系统的J
- 下一篇: SpringBoot - Spring