首页 > 其他分享 >Elasticsearch 6.8 集群索引异常问题修复

Elasticsearch 6.8 集群索引异常问题修复

时间:2022-10-13 18:48:12浏览次数:45  
标签:node 0.1 127.0 failed translog shard 索引 Elasticsearch 6.8

 1 [root@soar ~]# curl http://localhost:31600/_cluster/allocation/explain?pretty
 2 {
 3   "index" : "event20220429_v4",
 4   "shard" : 3,
 5   "primary" : false,
 6   "current_state" : "unassigned",
 7   "unassigned_info" : {
 8     "reason" : "ALLOCATION_FAILED",
 9     "at" : "2022-10-13T10:04:15.030Z",
10     "failed_allocation_attempts" : 5,
11     "details" : "failed shard on node [iE97es_jRNm1I66PFE4ixQ]: failed recovery, failure RecoveryFailedException[[event20220429_v4][3]: Recovery failed from {Cc1v1pt}{Cc1v1ptYRn-Bagl6cPrxzA}{pnp55WokSdCNKTGTm4dSOA}{127.0.0.1}{127.0.0.1:31701}{xpack.installed=true} into {iE97es_}{iE97es_jRNm1I66PFE4ixQ}{c74MnsrwQL6av57bCvQBPg}{127.0.0.1}{127.0.0.1:31700}{xpack.installed=true}]; nested: RemoteTransportException[[Cc1v1pt][127.0.0.1:31701][internal:index/shard/recovery/start_recovery]]; nested: RecoveryEngineException[Phase[1] prepare target for translog failed]; nested: RemoteTransportException[[iE97es_][127.0.0.1:31700][internal:index/shard/recovery/prepare_translog]]; nested: TranslogCorruptedException[translog from source [/data/soar/arkbase-2/data/nodes/0/indices/slCdH2pjSBSxLzozq31DTw/3/translog/translog-2.tlog] is corrupted, expected shard UUID [4d 41 6c 37 33 55 72 5f 51 42 53 73 6c 49 47 33 53 30 4b 67 4e 67] but got: [33 45 42 72 44 4a 72 51 51 47 43 6c 36 61 71 31 6a 46 34 68 35 67] this translog file belongs to a different translog]; ",
12     "last_allocation_status" : "no_attempt"
13   },
14   "can_allocate" : "no",
15   "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
16   "node_allocation_decisions" : [
17     {
18       "node_id" : "Cc1v1ptYRn-Bagl6cPrxzA",
19       "node_name" : "Cc1v1pt",
20       "transport_address" : "127.0.0.1:31701",
21       "node_attributes" : {
22         "xpack.installed" : "true"
23       },
24       "node_decision" : "no",
25       "deciders" : [
26         {
27           "decider" : "max_retry",
28           "decision" : "NO",
29           "explanation" : "shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2022-10-13T10:04:15.030Z], failed_attempts[5], delayed=false, details[failed shard on node [iE97es_jRNm1I66PFE4ixQ]: failed recovery, failure RecoveryFailedException[[event20220429_v4][3]: Recovery failed from {Cc1v1pt}{Cc1v1ptYRn-Bagl6cPrxzA}{pnp55WokSdCNKTGTm4dSOA}{127.0.0.1}{127.0.0.1:31701}{xpack.installed=true} into {iE97es_}{iE97es_jRNm1I66PFE4ixQ}{c74MnsrwQL6av57bCvQBPg}{127.0.0.1}{127.0.0.1:31700}{xpack.installed=true}]; nested: RemoteTransportException[[Cc1v1pt][127.0.0.1:31701][internal:index/shard/recovery/start_recovery]]; nested: RecoveryEngineException[Phase[1] prepare target for translog failed]; nested: RemoteTransportException[[iE97es_][127.0.0.1:31700][internal:index/shard/recovery/prepare_translog]]; nested: TranslogCorruptedException[translog from source [/data/soar/arkbase-2/data/nodes/0/indices/slCdH2pjSBSxLzozq31DTw/3/translog/translog-2.tlog] is corrupted, expected shard UUID [4d 41 6c 37 33 55 72 5f 51 42 53 73 6c 49 47 33 53 30 4b 67 4e 67] but got: [33 45 42 72 44 4a 72 51 51 47 43 6c 36 61 71 31 6a 46 34 68 35 67] this translog file belongs to a different translog]; ], allocation_status[no_attempt]]]"
30         },
31         {
32           "decider" : "same_shard",
33           "decision" : "NO",
34           "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[event20220429_v4][3], node[Cc1v1ptYRn-Bagl6cPrxzA], [P], s[STARTED], a[id=DMIteCRPQcaAj6Qnftv9EA]]"
35         }
36       ]
37     },
38     {
39       "node_id" : "iE97es_jRNm1I66PFE4ixQ",
40       "node_name" : "iE97es_",
41       "transport_address" : "127.0.0.1:31700",
42       "node_attributes" : {
43         "xpack.installed" : "true"
44       },
45       "node_decision" : "no",
46       "deciders" : [
47         {
48           "decider" : "max_retry",
49           "decision" : "NO",
50           "explanation" : "shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2022-10-13T10:04:15.030Z], failed_attempts[5], delayed=false, details[failed shard on node [iE97es_jRNm1I66PFE4ixQ]: failed recovery, failure RecoveryFailedException[[event20220429_v4][3]: Recovery failed from {Cc1v1pt}{Cc1v1ptYRn-Bagl6cPrxzA}{pnp55WokSdCNKTGTm4dSOA}{127.0.0.1}{127.0.0.1:31701}{xpack.installed=true} into {iE97es_}{iE97es_jRNm1I66PFE4ixQ}{c74MnsrwQL6av57bCvQBPg}{127.0.0.1}{127.0.0.1:31700}{xpack.installed=true}]; nested: RemoteTransportException[[Cc1v1pt][127.0.0.1:31701][internal:index/shard/recovery/start_recovery]]; nested: RecoveryEngineException[Phase[1] prepare target for translog failed]; nested: RemoteTransportException[[iE97es_][127.0.0.1:31700][internal:index/shard/recovery/prepare_translog]]; nested: TranslogCorruptedException[translog from source [/data/soar/arkbase-2/data/nodes/0/indices/slCdH2pjSBSxLzozq31DTw/3/translog/translog-2.tlog] is corrupted, expected shard UUID [4d 41 6c 37 33 55 72 5f 51 42 53 73 6c 49 47 33 53 30 4b 67 4e 67] but got: [33 45 42 72 44 4a 72 51 51 47 43 6c 36 61 71 31 6a 46 34 68 35 67] this translog file belongs to a different translog]; ], allocation_status[no_attempt]]]"
51         }
52       ]
53     }
54   ]
55 }
56 [root@soar ~]#

重启解决

标签:node,0.1,127.0,failed,translog,shard,索引,Elasticsearch,6.8
From: https://www.cnblogs.com/yimusidian/p/16789251.html

相关文章

  • linux:安装pytorch(python3.6.8 / pytorch 1.10.1+cu102)
    一,pytorch的官网:https://pytorch.org/如图:根据自己的需求选择版本、平台、语言环境等信息,然后运行命令即可说明:刘宏缔的架构森林是一个专注架构的博客,地址:https:/......
  • 博客索引
    由于这个\(css\)的某些缺陷,它吞我文章,所以就写了个这个题解CSP模拟18CSP模拟17CSP模拟14CSP模拟13CSP模拟12CSP模拟11CSP模拟10CSP模拟9CSP模拟8暑假集训1暑......
  • 关于 Elasticsearch 和 Kibana
    关于Elasticsearch和KibanaElasticsearchElasticsearch是什么?Elasticsearch是一个基于ApacheLucene(TM)的开源搜索引擎。无论在开源还是专有领域,Lucene可以被......
  • clickhouse中MergeTree引擎 order by的字段是否都走索引,效率怎么样?
    Clickhouse的主键索引是一个稀疏索引,它并不存储每一个行的数据,而是存储每个子矩阵的第一个行数据,因此8192行数据才会有一个索引值,索引非常小,对应的代价就是查找......
  • mysql给表的字段加索引
    1、添加普通索引ALTERTABLE`table_name`ADDINDEXindex_name(`column`)2、添加主键索引ALTERTABLE`table_name`ADDPRIMARYKEY(`column`)3、添加唯一索引(UNIQ......
  • elasticsearch聚合查询
    聚合查询分三类:桶聚合、指标聚合、管道聚合。1:桶聚合:通俗的讲就是按某个属性分类,统计该属性数量GEThow2java/product/_search//查询每个地方商品数量{"size":0,......
  • 详解MongoDB索引优化
    一、索引简介索引通常能够极大的提高查询的效率,如果没有索引,MongoDB在读取数据时必须扫描集合中的每个文件并选取那些符合查询条件的记录。1.1概念索引最常用的比喻就......
  • ElasticSearch学习 - (九)Elasticsearch自动补齐建议-completion suggester
    创建index-puthttp://localhost:9200/demo{"settings":{"analysis":{"analyzer":{"ik_pinyin_analyzer":{......
  • ElasticSearch学习 - (六)TransportClient的使用
    前提/***ElasticSearch客户端*/@Autowiredprivate索引判断索引是否存在publicbooleanisIndexExist(Stringindex){returnclient.admin().indice......
  • ElasticSearch学习 - (五)SpringBoot集成ElasticSearch5.X
    步骤:添加pom文件依赖配置ElasticSearch使用ElasticSearch的java客户端一、添加pom文件依赖<properties><elasticsearch.version>5.6.4</elasticsearch.version></pr......