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

相关推荐
饮水桶_T8 小时前
Java调用大语言模型 笔记
笔记·设计模式·电脑·ai编程
Sunflower_ac9 小时前
强化学习学习笔记:Lab 0–Lab 2
笔记·学习
JWIPC10 小时前
MyClaw 3.0 自动化数据采集实战指南
linux·运维·笔记·科技·深度学习·物联网·自动化
Brilliantwxx10 小时前
【项目】 智慧监测系统 开发笔记(三)界面切换、阀值保存、TB6612、联网、ESP8266机智云、语音控制、智能公元
笔记·stm32·单片机·嵌入式硬件
DeepCeLa11 小时前
PP阻燃笔记:稀土协效剂在膨胀阻燃体系里能起什么作用
笔记·稀土·稀土科技·稀土协效剂·pp应用
Elasticsearch11 小时前
借助 AWS Quick 和 Elastic Agent Builder 的 MCP 服务器,用自然语言查询百万笔交易
elasticsearch
Z21-X13 小时前
云原生运维学习笔记:Kubernetes 自动扩缩容与资源管控实战
运维·笔记·学习·云原生·kubernetes
可涵不会debug14 小时前
ChatServer 模块学习笔记:HTTP 接入层、多线程与流式响应
笔记·学习·http
Elasticsearch14 小时前
你的第 95 百分位数掩盖了 95% 的请求,而 ES|QL 直方图能展示这些请求的分布
elasticsearch