docker - 将数据从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
解决方案
推荐阅读
- c++ - 指针值数组在函数结束时被破坏,有人能告诉我为什么吗?
- php - PHP str_replace 替换字符串中不匹配的文本
- python - 如何建立 LSTM 网络?
- excel - 根据单元格的数字格式设置条件格式?
- android - 如何在 Visual Studio (Android) 中包含 OpenGLES 3
- scala - 这段教授子类型多态性的 Scala 代码是什么意思?
- python - 使用函数转换日期时间列
- julia - 在Julia中尝试通过`/`和`|`拆分字符串时如何使用拆分功能
- go - 如何编写干净的集成测试
- android - 如何使用 DiffUtils 更新 RecyclerView 中的列表?