【问题标题】:Failed to import Azure table (AzCopy)无法导入 Azure 表 (AzCopy)
【发布时间】:2018-11-07 22:24:47
【问题描述】:

我在 Blob 存储中有一个 Azure 表及其备份。

当我尝试使用 AzCopy 恢复它时,有些已恢复,但有些出现错误。

成功

[2018/05/29 12:01:49.463+03:00][VERBOSE] 6.1.0 : AzCopy /Source:https://arenaxtablesbackup.blob.core.windows.net/arenaxstorage/2018-05-28 /Dest:https://arenaxstoragedev.table.core.windows.net/LeaderboardDaily /SourceKey:****** /Destkey:****** /Manifest:arenaxstorage_LeaderboardDaily.manifest /EntityOperation:InsertOrReplace /Z /V
[2018/05/29 12:01:52.531+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1, transferred bytes: 191 B
[2018/05/29 12:01:52.758+03:00] Validating the integrity of data file list...
[2018/05/29 12:01:52.974+03:00] Validation of data file list passed.
[2018/05/29 12:01:53.208+03:00] 
Transfer summary:
-----------------
Total entities transferred: 0
Elapsed time:               00.00:00:03
[2018/05/29 12:04:57.932+03:00] >>>>>>>>>>>>>>>>
[2018/05/29 12:04:57.937+03:00][VERBOSE] 6.1.0 : AzCopy /Source:https://arenaxtablesbackup.blob.core.windows.net/arenaxstorage/2018-05-28 /Dest:https://arenaxstoragedev.table.core.windows.net/LeaderboardUser /SourceKey:****** /Destkey:****** /Manifest:arenaxstorage_LeaderboardUser.manifest /EntityOperation:InsertOrReplace /Z /V
[2018/05/29 12:05:01.189+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1, transferred bytes: 209 B
[2018/05/29 12:05:01.440+03:00] Validating the integrity of data file list...
[2018/05/29 12:05:01.679+03:00] Validation of data file list passed.
[2018/05/29 12:05:01.903+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 209 B
[2018/05/29 12:05:01.903+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 209 B
[2018/05/29 12:05:01.904+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 209 B
[2018/05/29 12:05:01.904+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 209 B
[2018/05/29 12:05:04.149+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 4 MB
[2018/05/29 12:05:23.741+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 8 MB
[2018/05/29 12:05:23.747+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 9.53 MB
[2018/05/29 12:05:23.753+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 9.53 MB
[2018/05/29 12:05:23.753+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1 of 2, transferred bytes: 9.53 MB
[2018/05/29 12:05:23.756+03:00][VERBOSE] Uploaded entities: 0
[2018/05/29 12:05:23.823+03:00] Validating the integrity of data file "arenaxstorage_LeaderboardUser_0_0_C0DC932F526179D7.json"...
[2018/05/29 12:05:23.849+03:00] Validation of data file "arenaxstorage_LeaderboardUser_0_0_C0DC932F526179D7.json" passed.
[2018/05/29 12:05:26.463+03:00][VERBOSE] Uploaded entities: 100
[2018/05/29 12:05:27.667+03:00][VERBOSE] Uploaded entities: 500
...
[2018/05/29 12:08:18.882+03:00][VERBOSE] Uploaded entities: 21600
[2018/05/29 12:08:19.024+03:00][VERBOSE] Uploaded entities: 21704
[2018/05/29 12:08:19.040+03:00] 
Transfer summary:
-----------------
Total entities transferred: 21704
Elapsed time:               00.00:03:21

错误

[2018/05/29 12:10:44.537+03:00] >>>>>>>>>>>>>>>>
[2018/05/29 12:10:44.543+03:00][VERBOSE] 6.1.0 : AzCopy /Source:https://arenaxtablesbackup.blob.core.windows.net/arenaxstorage/2018-05-28 /Dest:https://arenaxstoragedev.table.core.windows.net/Leaderboard /SourceKey:****** /Destkey:****** /Manifest:arenaxstorage_Leaderboard.manifest /EntityOperation:InsertOrReplace /Z /V
[2018/05/29 12:10:47.659+03:00][VERBOSE] Uploaded entities: 0    Downloaded blobs: 1, transferred bytes: 205 B
[2018/05/29 12:10:47.895+03:00] Validating the integrity of data file list...
[2018/05/29 12:10:48.276+03:00][ERROR] Failed to import Azure table. Detailed error: Data validation failed. Data files are missing or have been renamed.

有什么问题?

【问题讨论】:

  • 当我将此表导出为 CSV 并尝试通过存储资源管理器导入时,我收到错误“第 53 行的列数不一致”!image 原始表在此行开始有其他列: !image
  • 下载本地失败的 blob 时,是否可以在本地 Cosmos DB 模拟器中打开它们以进行故障排除?
  • 我可以毫无问题地下载 blob,它们与我通过在本地运行 azcopy 制作的相同。
  • 这些 blob 在下载时是否可用?我问的原因是您收到的错误消息主要是由损坏的文件/blob 引起的
  • 对不起,我没有得到你的问题。可用是什么意思?我可以通过文本编辑器打开它或通过Get-Content $FILE | ConvertFrom-Json 导入

标签: azure azure-storage azure-blob-storage azure-table-storage azcopy


【解决方案1】:

我发现在向表中添加新列的那一行开始导入失败。

但我可以使用表服务 REST API 导入此表。 是否可以以某种方式对 AzCopy 做同样的事情?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    • 2022-06-13
    • 1970-01-01
    • 2016-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多