首页 > 解决方案 > ETL 将数据导入 MongoDB

问题描述

我想知道一个将数据上传到 MongoDB 的 ETL 工具,我尝试过使用 Pentaho 和 Talend,但我更喜欢更轻的东西,因为我的过程非常简单。

谢谢!

标签: mongodbnosqletl

解决方案


假设您有一个 JSON 文件“test.json”(并且还假设它是有效的 JSON),您可以使用命令行程序mongoimport

例子:

mongoimport --host localhost:27017 --db test --collection test --username johndoe --password my secret --authenticationDatabase admin  --file test.json

推荐阅读