Documentdb 简明教程
DocumentDB - Data Migration
利用 DocumentDB 数据迁移工具,您可以轻松地将数据迁移到 DocumentDB。DocumentDB 数据迁移工具是一个免费且开源的工具,您可以从 Microsoft 下载中心 https://www.microsoft.com/ 下载该工具。
With the DocumentDB Data Migration tool, you can easily migrate data to DocumentDB. The DocumentDB Data Migration Tool is a free and open source utility you can download from the Microsoft Download Center https://www.microsoft.com/
迁移工具支持许多数据源,其中一些如下所列 −
The Migration Tool supports many data sources, some of them are listed below −
-
MongoDB
-
Azure Table Storage
-
Amazon DynamoDB
-
HBase, and even other DocumentDB databases
下载 DocumentDB 数据迁移工具后,解压该 zip 文件。
After downloading the DocumentDB Data Migration tool, extract the zip file.
您可以在此文件夹中看到两个可执行文件,如下面的屏幕截图所示。
You can see two executables in this folder as shown in the following screenshot.

首先,有 dt.exe,这是具有命令行界面的控制台版本,然后是 dtui.exe,这是具有图形用户界面的桌面版本。
First, there is dt.exe, which is the console version with a command line interface, and then there is dtui.exe, which is the desktop version with a graphical user interface.
我们来启动 GUI 版本。
Let’s launch the GUI version.

您会看到欢迎页面。单击“下一步”以获取源信息页面。
You can see the Welcome page. Click ‘Next’ for the Source Information page.

这是您配置数据源的地方。您可以在下拉菜单中看到受支持的许多选项。
Here’s where you configure your data source, and you can see the many supported choices from the dropdown menu.

当您做出选择时,源信息页面的其余部分将相应更改。
When you make a selection, the rest of the Source Information page changes accordingly.
DocumentDB 数据迁移工具可轻松导入数据。我们建议您执行上述示例并使用其他数据文件。
It is very easy to import data to DocumentDB using the DocumentDB Data Migration Tool. We recommend you exercise the above examples and use the other data files as well.