【问题标题】:bq fails with "close failed in file object destructor / IOError: [Errno 9] Bad file descriptor"bq 因“文件对象析构函数/IOError 关闭失败:[Errno 9] 文件描述符错误”而失败
【发布时间】:2014-02-26 20:18:42
【问题描述】:

在成功使用交互式开发者控制台将数据加载到 BigQuery 中花了几天时间后,我正在学习使用 bq。

今天我要使用 bq 上传我的第一个格式正确的 CSV 文件,但在过程结束时遇到此错误:

close failed in file object destructor:  
IOError: [Errno 9] Bad file descriptor
Waiting on bqjob_r1581e771414c555a_00000143f71d0a99_1 ... (49s) Current status: DONE  

csv 文件的行数 >600k,行数 >117 Mb。

我重复了“实验”,第二次没有问题。我想了解这是我的问题还是 BigQuery 的问题,因为我需要编写对 bq 的调用以处理大量文件,并且我想了解我需要在多大程度上管理异常。

我在 MacOS 10.9.1 上使用 Homebrew 的 Python 2.7.6。

谢谢!

贾塞科

【问题讨论】:

    标签: google-bigquery


    【解决方案1】:

    “IOError: [Errno 9] Bad file descriptor”通常表示本地文件系统问题。

    更多详情请见What can lead to "IOError: [Errno 9] Bad file descriptor" during os.system()?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-20
      • 1970-01-01
      • 1970-01-01
      • 2014-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多