【问题标题】:Invalid Path while inserting job from google cloud storage to google bigquery将工作从谷歌云存储插入谷歌大查询时路径无效
【发布时间】:2013-12-17 10:57:12
【问题描述】:

我正在尝试通过 HTTP Post 请求插入作业,但我收到 Invalid path 错误。

我的请求正文如下:

{
"configuration": {
"load": {
"sourceUris": [
"gs://onianalytics/PersData.csv"
],
"schema": {
"fields": [
{
"name": "Name",
"type": "STRING"
},
{
"name": "Age",
"type": "INTEGER"
}
]
},
"destinationTable": {
"datasetId": "Test_Dataset",
"projectId": "lithe-anvil-404",
"tableId": "tb_test_Pers"
}
}
},
"jobReference": {
"jobId": "10",
"projectId": "lithe-anvil-404"
}
}

对于 sourceuri 参数,我传递“gs://onianalytics/PersData.csv”,其中 onianalytics 是我的存储桶名称,PersData.csv 是我的 csv 文件(我想从中将数据上传到 google bigquery)。

我收到以下回复:

"status": {
"state": "DONE",
"errorResult": {
"reason": "invalid",
"message": "Invalid path: gs://onianalytics/PersData.csv"
},
"errors": [
{
"reason": "invalid",
"message": "Invalid path: gs://onianalytics/PersData.csv"
}
]
},
"statistics": {
"creationTime": "1387276603674",
"startTime": "1387276603751",
"endTime": "1387276603751"
}
}

请解释为什么会出现这个错误?

【问题讨论】:

    标签: google-bigquery


    【解决方案1】:

    您的存储桶是否与已激活 BigQuery 服务且您请求令牌的 projectId 相同?如果没有,您是否尝试过为该项目启用读/写访问权限?

    【讨论】:

    猜你喜欢
    • 2014-01-31
    • 1970-01-01
    • 2015-07-17
    • 1970-01-01
    • 2020-09-10
    • 2017-11-16
    • 2018-12-04
    • 1970-01-01
    • 2015-09-02
    相关资源
    最近更新 更多