zoukankan      html  css  js  c++  java
  • ES06--elasticsearch

    ES06--elasticsearch unassigned错误解决(手动处理)

    查看集群健康状态:curl -XGET http://localhost:9200/_cluster/health?pretty

    图中显示,有0个分片未分配节点

    *****************************开始修复************************************

    1、查看所有分片状态:curl -XGET http://localhost:9200/_cat/shards (显示所有分片状态);curl -s "http://localhost:9200/_cat/shards" | grep UNASSIGNED (只显示为分配节点)

    2、查看master节点的唯一标识:curl 'localhost:9200/_nodes/process?pretty'

    3、执行reroute(分多次,逐个修复 变更shard的值为UNASSIGNED查询结果中编号, 上一步查询结果是/0 1 2 3 4)

    inde:需要修复的索引的名字(这里需要修复三个索引)

    shard:shard的编号,图中可以看出

    node:master节点的唯一标识

    curl -XPOST 'localhost:9200/_cluster/reroute' -d '{

    "commands" : [ {

    "allocate" : {

    "index" : "rs_wx_test",//UNASSIGNED 的index名称(第一列)

    "shard" : 1,//查询出UNASSIGNED 的数字编号(第二列)

    "node" : "TEEPHeoGRIurYdO8DBjJmA",

    "allow_primary" : true

    }

  • 相关阅读:
    [BZOJ3998]弦论
    [Arc062] Painting Graphs with AtCoDeer
    [BZOJ4819]新生舞会
    [BZOJ3091]城市旅行
    [BZOJ1494]生成树计数
    单独使用JDBC编程
    highcharts(前端报表生成)
    报表技术之PDF格式报表生成 ----JasperResport
    iText生成PDF 格式报表
    html基本代码书写
  • 原文地址:https://www.cnblogs.com/gaoyuechen/p/10167582.html
Copyright © 2011-2022 走看看