【问题标题】:Use Azure Cosmos DB Migration Tool to export from Azure Table API to json使用 Azure Cosmos DB 迁移工具从 Azure Table API 导出到 json
【发布时间】:2019-10-02 13:56:30
【问题描述】:

我想将数据从 Cosmos Table API 迁移到 json 文件。

我已经从门户复制了 PRIMARY CONNECTION STRING,这是我尝试使用迁移工具运行的命令:

dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING" /s.Collection:application /t:JsonFile

或者:

dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING;Database=TablesDB" /s.Collection:application /t:JsonFile

我收到此错误:

严重错误:DocumentDB 帐户端点 URL 应作为连接字符串的一部分提供

我错过了什么?

【问题讨论】:

    标签: azure azure-cosmosdb data-migration cosmos


    【解决方案1】:

    严重错误:DocumentDB 帐户端点 URL 应提供为 连接字符串的一部分

    基于此错误,连接字符串中缺少帐户 url。您可以按照此link 中的示例进行操作:

    dt.exe /s:JsonFile /s.Files:.\Sessions.json /t:DocumentDBBulk /t.ConnectionString:"AccountEndpoint=;AccountKey=;Database=;"

    请检查您的连接字符串中的AccountEndpoint=,然后重试。

    【讨论】:

    • 我想从 Cosmos Table API 移动到 json 文件。
    • 我想从 Cosmos Table API 移动到 json 文件。但你在这里给了我我需要的答案:stackoverflow.com/questions/58202455/…
    • 将数据从 Table API 导出到 json 文件的命令:dt.exe /s:AzureTable /s.ConnectionString:"Connection String" /s.Table:application /s.InternalFields:All /t: JsonFile /t.File:application.json
    • @Angela 您的错误表明您提供了不完整的连接字符串,我只是想建议您检查连接字符串。
    • 问题是我使用的是 /s:DocumentDB 而不是 /s:AzureTable
    猜你喜欢
    • 1970-01-01
    • 2018-09-02
    • 1970-01-01
    • 2018-12-14
    • 2021-01-03
    • 2019-06-01
    • 1970-01-01
    • 2023-02-21
    • 1970-01-01
    相关资源
    最近更新 更多