大数据计算MaxCompute可以帮忙看下这个报错原因是什么吗
Traceback (most recent call last):
File "", line 31, in
for record in reader:
File "/home/tops/lib/python3.7/site-packages/odps/models/readers.py", line 121, in iter
for record in self.read():
File "/home/tops/lib/python3.7/site-packages/odps/models/readers.py", line 159, in read
start, rec_count, step=step, compress=compress, columns=columns
File "/home/tops/lib/python3.7/site-packages/odps/models/readers.py", line 81, in _retry_iter_reader
start, record_count, step, compress=compress, columns=columns, counter=counter
File "/home/tops/lib/python3.7/site-packages/odps/models/readers.py", line 141, in _open_and_iter_reader
start, record_count, compress=compress, columns=columns
File "/home/tops/lib/python3.7/site-packages/odps/utils.py", line 905, in call_with_retry
return callable(args, *kwargs)
File "/home/tops/lib/python3.7/site-packages/odps/tunnel/instancetunnel.py", line 187, in open_record_reader
start, count, compress=compress, columns=columns, reader_cls=TunnelRecordReader
File "/home/tops/lib/python3.7/site-packages/odps/tunnel/instancetunnel.py", line 160, in _open_reader
resp = self._client.get(url, stream=True, params=params, headers=headers)
File "/home/tops/lib/python3.7/site-packages/odps/rest.py", line 248, in get
return self.request(url, 'get', stream=stream, kwargs)
File "/home/tops/lib/python3.7/site-packages/odps/rest.py", line 177, in request
pass
File "/home/tops/lib/python3.7/contextlib.py", line 119, in exit
next(self.gen)
File "/home/tops/lib/python3.7/site-packages/odps/rest.py", line 244, in _request
errors.throw_if_parsable(res, self._endpoint, self._tag)
File "/home/tops/lib/python3.7/site-packages/odps/errors.py", line 97, in throw_if_parsable
raise parse_response(resp, endpoint, tag)
odps.errors.ODPSError: StatusConflict: RequestId: 2024020911360943e3db0b11ecc6c9 Tag: TUNNEL Endpoint: http:// dt.cn-shanghai.maxcompute.aliyun-inc.com
The download session is expired.
2024-02-09 11:36:09 INFO =================================================================
2024-02-09 11:36:09 INFO Exit code of the Shell command 1
2024-02-09 11:36:09 INFO --- Invocation of Shell command completed ---
2024-02-09 11:36:09 ERROR Shell run failed!
2024-02-09 11:36:09 ERROR Current task status: ERROR
2024-02-09 11:36:09 INFO Cost time is: 92651.194s
/home/admin/alisatasknode/taskinfo//20240208/datastudio/09/51/52/9gdaueoa5s3m7fui2e2dsc8o/T3_4925124095.log-END-EOF
根据你提供的错误信息,该问题是由于在阿里云MaxCompute中使用DataWorks或SDK读取数据时,下载会话过期导致的。具体错误信息为:
ODPSError: StatusConflict: RequestId: ... Tag: TUNNEL Endpoint: ...
The download session is expired.
MaxCompute Tunnel服务(用于高效地上传和下载大表数据)在进行数据读取时,创建了一个临时的下载会话,但该会话在数据读取过程中过期了。这可能是因为在读取数据的时间超过了Tunnel会话的默认有效期。
解决办法:
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
MaxCompute(原ODPS)是一项面向分析的大数据计算服务,它以Serverless架构提供快速、全托管的在线数据仓库服务,消除传统数据平台在资源扩展性和弹性方面的限制,最小化用户运维投入,使您经济并高效的分析处理海量数据。