elasticSearch数据的导入和导出

http://wget https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.gz

解压即可:

1、将索引中的数据导出到本地

myindex 是我的索引

javascript 复制代码
elasticdump --input=http://localhost:9200/myindex--output=/home/date/myindex.json

2、将本地数据导入es中

javascript 复制代码
 elasticdump --input=/home/date/myindex.json --output=http://localhost:9200/myindex

3、将es导入另一个es

javascript 复制代码
elasticdump --input=http://ip:9200/myindex.json--output=http://127.0.0.1:9200/myindex.json
相关推荐
大大大大晴天2 小时前
Hudi技术内幕:RecordPayload到RecordMerger
大数据
SelectDB17 小时前
秒级弹性、最高降本 70%:SelectDB Serverless 如何重塑云数仓资源效率
大数据·后端·云原生
WhoAmI17 小时前
MapReduce框架原理解析一:InputFormat
大数据·hadoop
WhoAmI17 小时前
MapReduce框架原理解析三:OutputFormat
大数据·hadoop
WhoAmI17 小时前
MapReduce框架原理解析二:Shuffle
大数据·hadoop
大大大大晴天2 天前
Hudi技术内幕:Key Generation原理与实践
大数据
Elasticsearch2 天前
3个信号、2个环境变量、0个采集器:使用 Python 和 Elastic 的托管 OTLP 端点实现 OpenTelemetry
elasticsearch
Elasticsearch4 天前
如何通过 Claude Code 来写入 CSV 数据到 Elasticsearch
elasticsearch
得物技术5 天前
从埋点需求到规则资产:Hermes Agent 重构得物数仓工作流
大数据·llm·ai编程