【问题标题】:Google BigQuery and Google API Client PackageGoogle BigQuery 和 Google API 客户端包
【发布时间】:2019-08-24 14:51:56
【问题描述】:

我是一家金融科技初创公司的 DevOps 工程师,我们正在尝试将数据从 GCS 发送到 Airflow 中的 BigQuery,但在日志中收到以下错误消息,参考:

/site-packages/googleapiclient/http.py, line ___, in _retry_request for retry_num in range(num_retries + 1):

TypeError:+ 不支持的操作数类型:“NoneType”和“int”

是否有任何参数需要调整才能让这项任务发挥作用? 谢谢!

【问题讨论】:

  • 你能运行this example吗?另外,配置重试次数是否为您解决了问题?

标签: google-cloud-platform google-api google-bigquery google-cloud-storage


【解决方案1】:

当您配置 google 连接时(例如从 Airflow Web Interface /Admin/Connections 中),设置重试次数。

这似乎对我有用,显然默认设置为None,这就是它失败的原因。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-22
    • 1970-01-01
    相关资源
    最近更新 更多