mongodb - ETL 将数据导入 MongoDB
问题描述
我想知道一个将数据上传到 MongoDB 的 ETL 工具,我尝试过使用 Pentaho 和 Talend,但我更喜欢更轻的东西,因为我的过程非常简单。
谢谢!
解决方案
假设您有一个 JSON 文件“test.json”(并且还假设它是有效的 JSON),您可以使用命令行程序mongoimport
。
例子:
mongoimport --host localhost:27017 --db test --collection test --username johndoe --password my secret --authenticationDatabase admin --file test.json
推荐阅读
- java - Elastic 6.5 不支持 IndexRequest
- node.js - Will my websocket server affect nodejs server?
- ios - Display saved time in UIDatePicker after re-run app
- tsql - 在另一个存储过程中使用存储过程中的值
- kotlin - Kotlin convert Map
to Map > - php - 隐藏表格中的多个子行
- jenkins - Need to deploy to staging
- javascript - 如何将值从 angular .ts 文件传输到 javascript .js 文件
- .net - Writing a regex for a pattern like CA123456SDL or CA123456
- alexa - 从 alexa 技能中调用 alexa 技能