欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 焦点 > 笔记:remote reindex无法从ES7-->ES6

笔记:remote reindex无法从ES7-->ES6

2024/12/22 1:42:13 来源:https://blog.csdn.net/qq_33999844/article/details/144248082  浏览:    关键词:笔记:remote reindex无法从ES7-->ES6

背景

测试经常使用reindex API,一般都是同版本或者升级版本使用;

使用

remote reindex

POST _reindex
{"conflicts": "proceed","source": {"remote": {"host": "http://xxx.com:80","username": "elastic","password": "xxxxx","headers": {"x-client-app": "12345"}},"index": "test","size": 1000,"query": {"match_all": {}}},"dest": {"index": "test"}
}

发现报错

{"error": {"root_cause": [{"type": "exception","reason": "Error parsing the response, remote is likely not an Elasticsearch instance"}],"type": "exception","reason": "Error parsing the response, remote is likely not an Elasticsearch instance","caused_by": {"type": "x_content_parse_exception","reason": "[1:242] [search_response] failed to parse field [hits]","caused_by": {"type": "x_content_parse_exception","reason": "[1:242] [hits] total doesn't support values of type: START_OBJECT"}}},"status": 500
}

原因:remote reindex无法从ES7同步数据到ES6(不能降级)

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com