版本目标集群-6.2.4 版本源群集-5.4.1 操作系统中心7 安装yum是否在服务器源群集上安装了elasticdump,
尝试执行命令
elasticdump --input=http://server01:9200/kafka-broker-2017.07 --output=http://server02:9200/kafka-broker-2017.07 --type=mapping
其他变体
elasticdump --input=http://server01:9200/kafka-broker-2017.07 --output=http://server02:9200/kafka-broker-2017.07 --type=data
之后确实返回错误:
2018年8月6日星期一20:18:09 GMT |开始转储 2018年8月6日星期一20:18:09 GMT |从来源elasticsearch获得了1个对象(偏移量:0) 2018年8月6日星期一20:18:09 GMT |发出错误=>“不支持Content-Type标头[]” 2018年8月6日星期一20:18:09 GMT |总写入量:0 2018年8月6日星期一20:18:09 GMT |转储以错误结束(设置阶段)=>不支持Content-Type标头[]
2。
Mon, 06 Aug 2018 20:19:49 GMT | starting dump
Mon, 06 Aug 2018 20:19:49 GMT | Error Emitted => {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}
Mon, 06 Aug 2018 20:19:49 GMT | Total Writes: 0
Mon, 06 Aug 2018 20:19:49 GMT | dump ended with error (get phase) => Error: {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}
如果获取列表索引是
curl -XGET http://server01:9200/_cat/indices | grep kafka-broker
黄色开放kafka-broker-2017.07 iX966c6zRQOSjnZdm9zEEB 5 1 201577 0 28.8mb 20.5mb
如何解决这个问题?
p.s。
elasticdump --input=http://server01:9200/iX966c6zRQOSjnZdm9zEEB --output=http://server02:9200/iX966c6zRQOSjnZdm9zEEB --type=data
有回报
Mon, 06 Aug 2018 20:30:58 GMT | starting dump
Mon, 06 Aug 2018 20:30:58 GMT | Error Emitted => {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}
Mon, 06 Aug 2018 20:30:58 GMT | Total Writes: 0
Mon, 06 Aug 2018 20:30:58 GMT | dump ended with error (get phase) => Error: {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}