一、
 
错误提示: 索引只读
2020-09-03 16:56:53.270 ERROR 7 --- [io-8080-exec-10] c.s.c.exception.ServiceExceptionHandler : Controller处理发生错误: IllegalArgumentException:Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]
org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177) ~[elasticsearch-7.1.0.jar!/:7.1.0]
 
 
处理方法: 把只读属性去掉
 
# 下面的IP和对应端口⚠️替换
 
curl -s -H 'Content-Type: application/json' -XPUT '10.200.22.39:30004/_all/_settings?pretty' -d ' {
"index":{
"blocks" : {"read_only_allow_delete":"false"}
}
}'
 

相关文章:

  • 2018-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-02-22
  • 2021-09-15
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-11-06
  • 2021-07-24
  • 2021-08-13
  • 2021-08-17
相关资源
相似解决方案