首页 > 解决方案 > 将数据从json文件导入ES时,为什么Elasticsearch-dump会抛出Pipeline failed错误

问题描述

我已经成功地将数据从 ES 导出到 json.gz 文件中,但是 Elasticsearch-dump throw Pipeline failed error when import data from json file into ES。请问如何解决这个问题?另外,消息这么短,有什么方法可以显示更详细的错误消息?任何答案将不胜感激。

错误消息:

(node:1) UnhanddledPromiseRejectionWarning: Error: pipeline failed
    at file.setupGet (/usr/local/lib/node_modules/elasticdump/lib/transports/file.js:44:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

导入命令:

docker run --rm -it --network host taskrabbit/elasticsearch-dump:v6.25.0 --type=mapping --output=http://ip:9200/index_name --input /data/index_name_mapping.json
docker run --rm -it --network host taskrabbit/elasticsearch-dump:v6.25.0 --type=data --output=http://ip:9200/index_name --input /data/index_name_data.json

软件版本:

Elasticsearch-dump installed by docker: taskrabbit/elasticsearch-dump:v6.25.0
Elasticsearch: 7.3.0
Docker: 18.09.1
OS: Linux SUSE 12

标签: dockerelasticsearchdump

解决方案


推荐阅读