Redshift UNLOAD语句在19分钟后被取消

Redshift UNLOAD语句在19分钟后被取消

问题描述:

我试图从EC2实例使用此实用程序(https://github.com/awslabs/amazon-redshift-utils/blob/master/src/UnloadCopyUtility/redshift-unload-copy.py)卸载到s3大型(6GB)数据集。Redshift UNLOAD语句在19分钟后被取消

但是卸载的语句获取19分钟后,取消了60秒(我曾尝试已经2次)

pg.OperationalError: ERROR: Query (712244) cancelled on user's request 

我在红移配置检查statement_timeout PARAM并将它设置为0。任何人都可以告诉我20分钟后停止了什么?

此超时设置权该实用程序的代码:https://github.com/awslabs/amazon-redshift-utils/blob/94eb6d388c2b19e1609ef3a602c9bffba9211734/src/UnloadCopyUtility/redshift-unload-copy.py#L44

set_timeout_stmt = "set statement_timeout = 1200000" 

只是将其更改为任何你喜欢的。

+0

他们为什么偷偷地把东西放在那里:/ – Johny19