PyODPS使用问题-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

PyODPS使用问题

驰众信息 2017-06-21 17:43:16 2221

上传数据,类似的进程A一直在用没有问题,今天另起一个进程B 上传到另一个表b,出现如下错误
File "./test_aliyun_mac7days.py", line 26, in UploadData

writer.write(record)

File "odps/tunnel/tabletunnel/writer_c.pyx", line 251, in odps.tunnel.tabletunnel.writer_c.BaseRecordWriter.__exit__ (odps/tunnel/tabletunnel/writer_c.c:7636)
File "odps/tunnel/tabletunnel/writer_c.pyx", line 239, in odps.tunnel.tabletunnel.writer_c.BaseRecordWriter.close (odps/tunnel/tabletunnel/writer_c.c:7295)
File "/usr/local/lib/python2.7/site-packages/odps/tunnel/tabletunnel/writer.py", line 278, in close

self._req_io.finish()

File "/usr/local/lib/python2.7/site-packages/odps/tunnel/io.py", line 94, in finish

self._wait_obj.join()

File "/usr/local/lib/python2.7/threading.py", line 652, in join

raise RuntimeError("cannot join thread before it is started")

RuntimeError: cannot join thread before it is started
程序中使用了logging 有几行日志是这样的
2017-06-21 17:07:18 - Starting new HTTP connection (1): dt.odps.aliyun.com
2017-06-21 17:07:23 - "POST /projects/mac_scan/tables/xaa170621?uploads=1&curr_project=mac_scan HTTP/1.1" 201 931
2017-06-21 17:07:23 - response.status_code 201

分布式计算 MaxCompute
分享到
取消 提交回答
全部回答(1)
  • 继盛
    2019-07-17 21:19:04
    from odps import __version__
    
    print(__version__) 

    看下pyodps版本?

    0 0
大数据
使用钉钉扫一扫加入圈子
+ 订阅

大数据计算实践乐园,近距离学习前沿技术

推荐文章
相似问题