加载示例数据,设置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
}
'

相关文章:

  • 2021-09-15
  • 2021-10-01
  • 2021-09-20
  • 2021-08-08
  • 2021-10-22
  • 2021-10-06
  • 2021-11-27
猜你喜欢
  • 2021-05-24
  • 2021-05-21
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2021-10-18
  • 2021-12-03
相关资源
相似解决方案