当前位置:网站首页>ES cluster_block_exception read_only_allow_delete问题
ES cluster_block_exception read_only_allow_delete问题
2022-06-26 07:02:00 【話吥哆先森丶】
某次在做ES导入数据的时候发现报错
{
"error":{
"root_cause":[
{
"type":"cluster_block_exception",
"reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
],
"type":"cluster_block_exception",
"reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
},
"status":403
}原因:
这是由于ES新节点的数据目录data存储空间不足,导致从master主节点接收同步数据的时候失败,此时ES集群为了保护数据,会自动把索引分片index置为只读read-only「cluster_block_exception」
查看mappings可以看到:"read_only_allow_delete" : "ture"
{
"settings" : {
"index" : {
"refresh_interval" : "1s",
"number_of_shards" : "5",
"blocks" : {
"read_only_allow_delete" : "ture"
},
"provided_name" : "index_name",
"creation_date" : "1561280427271",
"analysis" : {
"analyzer" : {
"comma" : {
"pattern" : ",",
"type" : "pattern"
}
}
},
"number_of_replicas" : "1",
"uuid" : "xxxxxxxxxxxxxxx",
"version" : {
"created" : "6050399"
}
}
}
}解决方法:
- 1 磁盘扩容,可在配置文件中修改ES数据存储目录,重启ES
- 2 放开索引只读设置,在服务器上通过curl工具发起PUT请求
法一:
扩容后即可~
法二:
PUT _settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}
边栏推荐
- In depth analysis of redis object structure
- [image detection] image saliency detection based on ITTI model with matlab code
- [yolov4] matlab simulation of network target detection based on yolov4 deep learning
- If you meet a female driver who drives didi as an amateur, you can earn 500 yuan a day!
- 【图像分割】基于最大主曲率实现视网膜眼底图像中的血管提取附matlab代码
- Lightgbm-- parameter adjustment notes
- Interviewer: what is the difference between a test plan and a test plan?
- Numpy learning challenge level 5 - create array
- 二叉树中和为某一值的路径(一)(二)(三)(剑指offer)
- Guide to "avoid dismissal during probation period"
猜你喜欢

ZRaQnHYDAe

PyTorch搭建CNN-LSTM混合模型实现多变量多步长时间序列预测(负荷预测)

【路径规划】基于改进人工势场实现机器人路径规划附matlab代码

ZRaQnHYDAe

Analyse d'un problème classique

Matlab linear programming model learning notes

Paths with a certain value in a binary tree (1) (2) (3) (Sword finger offer)

Mysql操作数据库

NumPy学习挑战第四关-NumPy数组属性

LabVIEW arduino TCP / IP Remote Intelligent Home System (Project section - 5)
随机推荐
MySQL
Numpy learning challenge level 5 - create array
ZRaQnHYDAe
Solution of garbled code in sparkshell deletion key of SecureCRT
Paths with a certain value in a binary tree (1) (2) (3) (Sword finger offer)
在公司逮到一个阿里10年的测试开发,聊过之后大彻大悟...
JS download pictures
China imported wine circulation and investment market survey and Future Development Trend Outlook report 2022-2027
How to open an account in flush? Is it safe to open an account online?
Closure problem C Lua
China's Ni MH battery industry development overview analysis and investment trend forecast report 2022 Edition
Judgment of SQL null value
In depth analysis of redis object structure
面试被问Redis主从复制不会答?这13张图让你彻底弄明白
[path planning] robot path planning based on improved artificial potential field with matlab code
【路径规划】基于改进人工势场实现机器人路径规划附matlab代码
Kotlin compose state recovery remembersaveable and remember
“试用期避免被辞退“ 指南攻略
Differences, advantages and disadvantages between synchronous communication and asynchronous communication
MySQL operation database