gpt4 book ai didi

amazon-web-services - 亚马逊 Redshift 错误 : Mandatory url not present in manifest file

转载 作者:行者123 更新时间:2023-12-03 16:25:45 25 4
gpt4 key购买 nike

我有以下 list 文件

{
"entries": [
{
"url": "s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:47:40.049+05:30.gz",
"mandatory": true
},
{
"url": "s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:47:59.441+05:30.gz",
"mandatory": true
},
{
"url": "s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:48:19.297+05:30.gz",
"mandatory": true
},
{
"url": "s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:48:40.277+05:30.gz",
"mandatory": true
}
]
}

并遵循复制命令
COPY registrations_invalid_token
FROM 's3://locationnew/redshiftloader-
manifest/registrations_invalid_token_25_07_2017_11:55:11.manifest'
CREDENTIALS 'aws_access_key_id=XXX;aws_secret_access_key=XXX'
manifest gzip delimiter ',' dateformat 'auto'
FILLRECORD IGNOREBLANKLINES TRIMBLANKS TRUNCATECOLUMNS
MAXERROR 100000 region 'ap-south-1';

我得到以下异常

Amazon Invalid operation: Mandatory url is not present in manifest file. Details:
----------------------------------------------- error: Mandatory url is not present in manifest file. code: 8001 context:
Manifest file location=s3://locationnew/redshiftloader-manifest/registrations_invalid_token_25_07_2017_11:55:11.manifest url=s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:47:40.049+05:30.gz query: 1475619 location: s3_utility.cpp:337 process:
padbmaster [pid=32720]
-----------------------------------------------;



为什么我会收到这样的错误?

最佳答案

Using a Manifest to Specify Data Files文档说:

The optional mandatory flag specifies whether COPY should return an error if the file is not found. The default of mandatory is false. Regardless of any mandatory settings, COPY will terminate if no files are found.



Mandatory url is not present in manifest file error 措辞不当,但可能是说在 Amazon S3 上找不到指定的文件。

你可以用以下方法测试它:
aws s3 ls s3://gcmregtokenvalidation/registrations_invalid_token/registration_master_2017-07-25T10:47:40.049+05:30.gz

另外,尝试设置 mandatoryfalse查看错误是否消失。

关于amazon-web-services - 亚马逊 Redshift 错误 : Mandatory url not present in manifest file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45295838/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com