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

相关推荐
2603_9696948522 分钟前
【JavaWeb学习记录】MyBatis核心知识点与实战笔记:从入门到动态SQL
笔记·sql·学习·mysql·mybatis·javaweb·学习方法
可乐ea35 分钟前
智能体记忆该拆成几层:笔记、记忆表示与注入上下文
服务器·数据库·笔记·ai智能体·提示词工程·上下文工程·记忆系统
Go Work4 小时前
两个等值条件摆着,MySQL 偏要全表扫
经验分享·笔记
Oll Correct4 小时前
Adobe illustrator 案例十四:花元素标志草图绘制
笔记·ui·adobe·illustrator
YIN_尹5 小时前
【git原理与使用】git基本操作及底层原理(二)
大数据·git·elasticsearch
每月一号准时摆烂9 小时前
服务器运维笔记(一)——使用shell编写实时查看BMC功率的脚本
运维·服务器·笔记
Elasticsearch9 小时前
从结账告警到故障跨度:使用 Elastic 人工智能 agent 和 Elastic 应用性能监控浮出面板开展调查
elasticsearch
Elasticsearch9 小时前
认识全新的 Elastic 数据流:面向遥测数据的托管数据管道
elasticsearch
Elasticsearch11 小时前
使用 SpiceDB 为 Elasticsearch 检索增强生成实现细粒度授权
elasticsearch
新*12 小时前
ES 7.17 三节点 Docker 集群接入 IK 自定义词典:一次从丢插件到热更新的完整排障
运维·elasticsearch·docker·中文分词·ik分词