Не удалось импортировать таблицу Azure (AzCopy) - PullRequest
0 голосов
/ 29 мая 2018

У меня есть таблицы Azure и их резервные копии в хранилище BLOB-объектов.

enter image description here enter image description here

Когда я пытаюсь восстановить его с помощью 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.

В чем проблема?

1 Ответ

0 голосов
/ 31 мая 2018

Я обнаружил, что импорт не выполняется в строке, начиная с которой в таблицу добавляются новые столбцы.

enter image description here

Но я могу импортировать эту таблицуиспользуя Table Service REST API.Можно ли как-то сделать то же самое с AzCopy?

...