Elasticsearch - cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)]

本文涉及的产品
Elasticsearch Serverless检索通用型,资源抵扣包 100CU*H
简介: Elasticsearch - cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)]

20190806092132811.jpg

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"
}


修复

在kibana中执行

PUT artisan/_settings
{
  "index.blocks.read_only_allow_delete": null
}


执行完以后 无需重启

或者主机上直接执行如下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}'


扩展


6.4版本的 官方文档:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/disk-allocator.html


20210514171548287.png

20210514171658211.png

20210514171749598.png

20210514171831118.png

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"
  }
}
'


相关实践学习
使用阿里云Elasticsearch体验信息检索加速
通过创建登录阿里云Elasticsearch集群,使用DataWorks将MySQL数据同步至Elasticsearch,体验多条件检索效果,简单展示数据同步和信息检索加速的过程和操作。
ElasticSearch 入门精讲
ElasticSearch是一个开源的、基于Lucene的、分布式、高扩展、高实时的搜索与数据分析引擎。根据DB-Engines的排名显示,Elasticsearch是最受欢迎的企业搜索引擎,其次是Apache Solr(也是基于Lucene)。 ElasticSearch的实现原理主要分为以下几个步骤: 用户将数据提交到Elastic Search 数据库中 通过分词控制器去将对应的语句分词,将其权重和分词结果一并存入数据 当用户搜索数据时候,再根据权重将结果排名、打分 将返回结果呈现给用户 Elasticsearch可以用于搜索各种文档。它提供可扩展的搜索,具有接近实时的搜索,并支持多租户。
目录
打赏
0
0
0
0
99
分享
相关文章
(Elasticsearch)使用阿里云 infererence API 及 semantic text 进行向量搜索
本文展示了如何使用阿里云 infererence API 及 semantic text 进行向量搜索。
192 8
Elasticsearch Inference API增加对阿里云AI的支持
本文将介绍如何在 Elasticsearch 中设置和使用阿里云的文本生成、重排序、稀疏向量和稠密向量服务,提升搜索相关性。
263 14
Elasticsearch Inference API增加对阿里云AI的支持
ES常见Index API操作最佳实践!
【10月更文挑战第21天】
251 1
ES常见Index API操作最佳实践!
Elasticsearch集群使用 _cluster/health API
Elasticsearch集群使用 _cluster/health API
167 2
|
5月前
|
Elasticsearch集群使用 _cat/health API
Elasticsearch集群使用 _cat/health API
90 1
【Azure 存储服务】使用REST API操作Azure Storage Table,删除数据(Delete Entity)
【Azure 存储服务】使用REST API操作Azure Storage Table,删除数据(Delete Entity)
【Azure 存储服务】使用REST API操作Azure Storage Table,删除数据(Delete Entity)
1688API最新指南:商品详情接口接入与应用
本指南介绍1688商品详情接口的接入与应用,该接口可获取商品标题、价格、规格、库存等详细信息,适用于电商平台开发、数据分析等场景。接口通过商品唯一标识查询,支持HTTP GET/POST请求,返回JSON格式数据,助力开发者高效利用1688海量商品资源。
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等