简体   繁体   English

无法将备份数据从GCS加载到BigQuery

[英]Cannot load backup data from GCS to BigQuery

My backup table has 3 files: 2 ending with .backup_info and one folder with another folder containing 10 CSV files. 我的备份表有3个文件:2个以.backup_info结尾,另一个文件夹包含10个CSV文件。 What would be format of the URL which will specify the backup file location? 指定备份文件位置的URL格式是什么?

I'm trying below and every time I get a file not found error. 我在下面尝试,每当我得到文件未找到错误。

gs://bucket_name/name_of_the_file_which_ended_with_backup_info.info

When you go to look at your file from your backup, it should have a structure like this: 当您从备份中查看文件时,该文件应具有以下结构:

Buckets/app-id-999999999-backups

And the filenames should look like: 文件名应如下所示:

2017-08-20T02:05:19Z_app-id-999999999_data.json.gz

Therefore the path will be: 因此,路径将是:

gs://app-id-9999999999-backups/2017-08-20T02:05:19Z_app-id-9999999999_data.json.gz

Make sure you do not include the word "Buckets", I am guess that is the confusion. 确保您不包括“ Buckets”一词,我想这就是混乱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM