笔记: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(不能降级)

相关推荐
岳涛_daemon1 小时前
考古|ES 2.0 禁的元字段只有 10 个,_source 和 _version 不在里面
elasticsearch
Rabitebla3 小时前
【Linux】 文件系统(五):挂载与软硬链接,多个文件系统怎样组成统一目录树
linux·运维·服务器·c++·笔记·学习·算法
岳涛_daemon3 小时前
考古|ES 2.0 先整体解码再切分路径,文档 id 里的 %2F 被切开,个别 id 查不到
elasticsearch
whyTeaFo5 小时前
GAMES202: Lecture 5: Real-Time Environment Mapping ppt笔记
笔记
欢欢李7 小时前
【LTE L3 笔记 54】PDSCH动态功控
笔记·无线通信·物理层·lte·空口协议
做cv的小昊7 小时前
【大模型算法自学笔记07】NLP基础知识(1.7 Embedding)
人工智能·笔记·算法·计算机视觉·自然语言处理·transformer·embedding
元器件BOM超人8 小时前
LM2577S-ADJ升压笔记:3.5V输入、52kHz开关的电路要点
笔记
叼烟扛炮8 小时前
[LangGraph] 学习笔记(047):Pydantic 写的 State 也不校验,并行分支还互相看不见
笔记·学习
小白的高手之路8 小时前
【LeetCode 热题 100】206. 反转链表|链表、迭代、递归(Python)
笔记·python·算法·leetcode·链表·职场和发展·力扣
leo_厉锵9 小时前
JMeter 性能测试实操笔记
笔记·jmeter