weixin_39693437
2021-01-12 15:52 阅读 0

6.0 support

Hi, tried upgrading my dev env to test migrate to 6.0, doesn't seem like the data or mapping wants to move over to restore prod (5.4) -> dev (6.0) clusters.

该提问来源于开源项目:elasticsearch-dump/elasticsearch-dump

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_39708737 weixin_39708737 2021-01-12 15:52

    Me too :/

    Error Emitted => "Content-Type header [] is not supported"

    点赞 评论 复制链接分享
  • weixin_39925959 weixin_39925959 2021-01-12 15:52

    --headers='{"Content-Type": "application/json"}'

    Related to : https://github.com/taskrabbit/elasticsearch-dump/issues/350

    点赞 评论 复制链接分享
  • weixin_39598941 weixin_39598941 2021-01-12 15:52

    Same issue here...

    点赞 评论 复制链接分享
  • weixin_39753397 weixin_39753397 2021-01-12 15:52

    +1, the same issue, hope to get a new version soon!

    点赞 评论 复制链接分享
  • weixin_39957835 weixin_39957835 2021-01-12 15:52

    +1, awaiting :)

    点赞 评论 复制链接分享
  • weixin_39716105 weixin_39716105 2021-01-12 15:52

    +1 same issue.

    elasticsearch: 6.0.1 elasticsearch-dump: 3.3.1

    I have set --headers='{"Content-Type": "application/json"}' --limit=2000 and got errors below.

    shell
    Tue, 19 Dec 2017 07:06:11 GMT | Error Emitted => {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Failed to parse request body"}],"type":"illegal_argument_exception","reason":"Failed to parse request body","caused_by":{"type":"json_parse_exception","reason":"Unrecognized token 'DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAKRxFnMzYTQteWpWU3N1eGpIbDlpZlBYMncAAAAAAACkcBZzM2E0LXlqVlNzdXhqSGw5aWZQWDJ3AAAAAAAApHEWcEtNMkJqQWZRaUd2SFRfWl81czFWQQAAAAAAAKRwFnBLTTJCakFmUWlHdkhUX1pfNXMxVkEAAAAAAACkbxZzM2E0LXlqVlNzdXhqSGw5aWZQWDJ3': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput; line: 1, column: 457]"}},"status":400}
    Tue, 19 Dec 2017 07:06:11 GMT | starting dump
    Tue, 19 Dec 2017 07:06:11 GMT | got 2000 objects from source elasticsearch (offset: 0)
    Tue, 19 Dec 2017 07:06:11 GMT | sent 2000 objects to destination file, wrote 2000
    Tue, 19 Dec 2017 07:06:11 GMT | Total Writes: 2000
    Tue, 19 Dec 2017 07:06:11 GMT | dump ended with error (get phase) => Error: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Failed to parse request body"}],"type":"illegal_argument_exception","reason":"Failed to parse request body","caused_by":{"type":"json_parse_exception","reason":"Unrecognized token 'DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAKRxFnMzYTQteWpWU3N1eGpIbDlpZlBYMncAAAAAAACkcBZzM2E0LXlqVlNzdXhqSGw5aWZQWDJ3AAAAAAAApHEWcEtNMkJqQWZRaUd2SFRfWl81czFWQQAAAAAAAKRwFnBLTTJCakFmUWlHdkhUX1pfNXMxVkEAAAAAAACkbxZzM2E0LXlqVlNzdXhqSGw5aWZQWDJ3': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput; line: 1, column: 457]"}},"status":400}
    
    点赞 评论 复制链接分享
  • weixin_39831170 weixin_39831170 2021-01-12 15:52

    I tried this change and it works on ES 6.0: https://github.com/taskrabbit/elasticsearch-dump/pull/364/files

    点赞 评论 复制链接分享
  • weixin_39764379 weixin_39764379 2021-01-12 15:52

    I've published elasticsearch-dump docker image with latest code changes to be able to dump data from AWS Elasticsearch 6.x - seems to fix issues with Contenty-Type header and bulk requests.

    Grab it with docker pull zytek/elasticsearch-dump:3.3.1-rb1

    点赞 评论 复制链接分享

相关推荐