摘要:本篇教程探讨了大数据技术之elasticsearch 集群indices 分片状态INITIALIZING,希望阅读本篇文章以后大家有所收获,帮助大家对相关内容的理解更加深入。
本篇教程探讨了大数据技术之elasticsearch 集群indices 分片状态INITIALIZING,希望阅读本篇文章以后大家有所收获,帮助大家对相关内容的理解更加深入。
elasticsearch 集群indices 分片状态INITIALIZING,集群状态为: yellowGET /_cat/shards/7a_cool7a_cool 5 r STARTED 4583018 759.4mb 10.2.4.21 pt01-pte-10-2-4-217a_cool 17 r INITIALIZING 10.2.4.22 pt01-pte-10-2-4-22 《==异常分片
登陆pt01-pte-10-2-4-22 主机 ,/etc/init.d/elasticsearch stop ,发现分片自动迁移至其它主机,但是状态还是在初始化状态,问题依旧存在;
POST /_cluster/reroute{ "commands": [ { "move": { "index": "7a_cool", "shard": 17, "from_node": "pt01-pte-10-2-4-22", "to_node": "pt01-pte-10-2-4-25" } } ]}
{ "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "[move_allocation] can't move 17, shard is not started (state = INITIALIZING]" } ], "type": "illegal_argument_exception", "reason": "[move_allocation] can't move 17, shard is not started (state = INITIALIZING]" }, "status": 400}
以上信息显示, state = INITIALIZING ,不能移动。
首先修改indices 副本数为0 此时集群开始调整集群分片,调整完成后集群状态变成:green
PUT 7a_cool/_settings{ "index": { "number_of_replicas": "0" }}
PUT 7a_cool/_settings{ "index": { "number_of_replicas": "1" }}
集群会再次调整副本数量,调整完成后集群状态依然是:green ,问题解决。
本文由职坐标整理发布,学习更多的相关知识,请关注职坐标IT知识库!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号