elasticsearch+kibana setup

加載示例數據,設置index的時候出錯: 提示 forbidden
則多是es的問題,須要執行以下命令:html

curl -XPUT -H "Content-Type: application/json" 127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
{"acknowledged":true}

參考:https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.htmlshell

curl -X PUT "localhost:9200/twitter/_settings" -H 'Content-Type: application/json' -d'
{
  "index.blocks.read_only_allow_delete": null
}
'
相關文章
相關標籤/搜索