要不要再翻翻文档呢?

reindex 报错:reindex cannot write into an index its reading from

Elasticsearch | 作者 holly1202 | 发布于2019年02月26日 | 阅读数:4191

通过reindex,从其他集群远程迁移数据,如下:
1551160797205.jpg

 
执行报错:报错结果如下:
{

  "error" : {

    "root_cause" : [ {

      "type" : "action_request_validation_exception",

      "reason" : "Validation Failed: 1: reindex cannot write into an index its reading from [roc_ticket_v1];"

    } ],

    "type" : "action_request_validation_exception",

    "reason" : "Validation Failed: 1: reindex cannot write into an index its reading from [roc_ticket_v1];"

  },

  "status" : 400

}
 
请求这是什么问题,请各位指点,感激
已邀请:

rochy - rochy_he

赞同来自:

根据错误信息就是你 reindex 的时候,源索引和目标索引设置的一样;
ES 不允许源索引和目标索引一致
 
你如果一定要一致就只能自己使用 scroll + bulk 来实现 reindex 了

要回复问题请先登录注册