介绍
这篇文章主要介绍”JSON数据怎么从MongoDB迁移到MaxCompute”,在日常操作中,相信很多人在JSON数据怎么从MongoDB迁移到MaxCompute问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答“JSON数据怎么从MongoDB迁移到MaxCompute”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
{,,,“store":, {,,,,,,,“book":, ( ,,,,,,,,,,,,{,,,,,,,,,,,,,,,“category":,“reference",,,,,,,,,,,,,,,,,“author":,“Nigel Rees",,,,,,,,,,,,,,,,,“title":,“Sayings of 从而Century",,,,,,,,,,,,,,,,,“price":, 8.95 ,,,,,,,,,,,,}, ,,,,,,,,,,,,{,,,,,,,,,,,,,,,“category":,“fiction",,,,,,,,,,,,,,,,,“author":,“Evelyn Waugh",,,,,,,,,,,,,,,,,“title":,“Sword of Honour",,,,,,,,,,,,,,,,,“price":, 12.99 ,,,,,,,,,,,,}, ,,,,,,,,,,,,{,,,,,,,,,,,,,,,,“category":,“fiction",,,,,,,,,,,,,,,,,,“author":,“J只R只R只Tolkien",,,,,,,,,,,,,,,,,,“title",:,“, Lord of 从而Rings",,,,,,,,,,,,,,,,,,“isbn":,“0 - 395 - 19395 - 8“,,,,,,,,,,,,,,,,,,“price":, 22.99 ,,,,,,,,,,,,} ,,,,,,,,,,,,,,,,,,,,“bicycle":, {,,,,,,,,,,,,,“color":,“red",,,,,,,,,,,,,,,“price":, 19.95 ,,,,,,,,,} ,,,},,,,,“expensive":, 10}
登录MongoDB的DMS控制台,本例中使用的数据库为,管理,集合为,用户,您可以在查询窗口使用db.userlog.find () .limit(10)命令查看已上传好的数据,如下图所示只
db.createUser({用户:“bookuser" pwd:“123456”,角色:[“root"]})> 代码,新建用户名为,bookuser,密码为,123456年,权限为根。
使用DataWorks提取数据到MaxCompute
- <李>
新增MongoDB数据源
进入DataWorks
数据集成
控制台,新增
MongoDB类型
数据源只
JSON数据怎么从MongoDB迁移到MaxCompute