使用.bson blob将mongodb迁移到Cosmos DB服务 [英] Using .bson blob to migrate mongodb to Cosmos DB service

查看:78
本文介绍了使用.bson blob将mongodb迁移到Cosmos DB服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有< g class =" gr_ gr_13 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 13 QUOT; ID = QUOT 13 QUOT;> mongodb的< / g取代;服务器在Azure的Cosmos数据库服务上运行。



我上传了一个< g class =" gr_ gr_20 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" ;数据-GR-ID =" 20" ID = QUOT; 20"> mongodb的< / g取代; dump in< g class =" gr_ gr_23 gr-alert gr_gramm
gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep"数据-GR-ID =" 23" ID = QUOT; 23"> .bson< / g取代;格式为blob并将其命名为collection.database。< g class =" gr_ gr_21 gr-alert gr_spell gr_inline_cards
gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 21" id =" 21"> bson< / g> ;,其中集合和数据库被替换。



使用microsoft migration教程我到达标题" ;指定源详细信息"我们被要求提供源的链接。我正在使用连接字符串到我的.bson blob。它带我到Map to target数据库屏幕,但是,
是空白的并且没有行/信息。



我试过链接blob也在容器中,没有运气。关于如何使这项工作的任何想法?

解决方案

Hello David,


如何生成bson文件?


你能不能像bsondump一样使用生成json文件并检查它们是否正确提取?


I have a <g class="gr_ gr_13 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="13" id="13">mongodb</g> server running on Azure's Cosmos DB service.

I have uploaded a <g class="gr_ gr_20 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="20" id="20">mongodb</g> dump in <g class="gr_ gr_23 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="23" id="23">.bson</g> format as a blob and named it as collection.database.<g class="gr_ gr_21 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="21" id="21">bson</g>, where collection and database are replaced.

Using the microsoft migration tutorial I get to the header "Specify source details" where we are asked to give a link to the source. I am using the connection string to my .bson blob. It brings me to the Map to target databases screen, however, it is blank and has no rows/information.

I've tried linking to the container the blob is in too, with no luck. Any ideas on how to make this work?

解决方案

Hello David,

How were the bson files generated?

Could you please use a utlility like bsondump to generate the json files and check if they extract correctly?


这篇关于使用.bson blob将mongodb迁移到Cosmos DB服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆