elasticsearch+kibana setup

加载示例数据,设置index的时候出错: 提示 forbidden
则可能是es的问题,需要执行如下命令:

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.html

curl -X PUT "localhost:9200/twitter/_settings" -H 'Content-Type: application/json' -d'
{
  "index.blocks.read_only_allow_delete": null
}
'

猜你喜欢

转载自www.cnblogs.com/rainduck/p/11256922.html
今日推荐