reindex 报错:reindex cannot write into an index its reading from
Elasticsearch | 作者 holly1202 | 发布于2019年02月26日 | 阅读数:4311
通过reindex,从其他集群远程迁移数据,如下:
执行报错:报错结果如下:
{
"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
}
请求这是什么问题,请各位指点,感激
执行报错:报错结果如下:
{
"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
}
请求这是什么问题,请各位指点,感激
1 个回复
rochy - rochy_he
赞同来自:
ES 不允许源索引和目标索引一致
你如果一定要一致就只能自己使用 scroll + bulk 来实现 reindex 了