jar
在 AWS-EMR 集群上运行 Clojure ,使用(hfs-textline)
并获取:
IllegalArgumentException 必须指定 bucketName 参数。com.amazonaws.services.s3.AmazonS3Client.rejectNull`。
就我而言,它确实与存储桶名称有关。我输入错误s3:///mkay4242
(3 个斜杠)而不是s3://mkay4242
.
经过多次不同的尝试后,这种情况下的解决方案是 'AWS_ACCESS_KEY' 和 'AWS_SECRET_KEY' 值错误。
迟到了,但请检查您发送到 AWS 的参数。
在我的情况下,我正在使用存储的 S3 视频开始一个 rekognition 任务,我正在发送:
Video: {
S3Object: {
Bucket: BUCKET_KEY,
Name: filename //<- this was null
}
}
就我而言,我尝试了不同的解决方案,但我的区域名称不正确。请从下面给出的区域名称中选择
以前我使用美国东部(俄亥俄州)作为区域,但在属性文件中将其更新为us-east-2后,我的代码运行成功。
在 application.properties 文件中
#aws.s3.region=美国东部(俄亥俄州)
aws.s3.region=us-east-2
public enum Regions {
GovCloud("us-gov-west-1", "AWS GovCloud (US)"),
US_GOV_EAST_1("us-gov-east-1", "AWS GovCloud (US-East)"),
US_EAST_1("us-east-1", "US East (N. Virginia)"),
US_EAST_2("us-east-2", "US East (Ohio)"),
US_WEST_1("us-west-1", "US West (N. California)"),
US_WEST_2("us-west-2", "US West (Oregon)"),
EU_WEST_1("eu-west-1", "EU (Ireland)"),
EU_WEST_2("eu-west-2", "EU (London)"),
EU_WEST_3("eu-west-3", "EU (Paris)"),
EU_CENTRAL_1("eu-central-1", "EU (Frankfurt)"),
EU_NORTH_1("eu-north-1", "EU (Stockholm)"),
EU_SOUTH_1("eu-south-1", "EU (Milan)"),
AP_EAST_1("ap-east-1", "Asia Pacific (Hong Kong)"),
AP_SOUTH_1("ap-south-1", "Asia Pacific (Mumbai)"),
AP_SOUTHEAST_1("ap-southeast-1", "Asia Pacific (Singapore)"),
AP_SOUTHEAST_2("ap-southeast-2", "Asia Pacific (Sydney)"),
AP_NORTHEAST_1("ap-northeast-1", "Asia Pacific (Tokyo)"),
AP_NORTHEAST_2("ap-northeast-2", "Asia Pacific (Seoul)"),
SA_EAST_1("sa-east-1", "South America (Sao Paulo)"),
CN_NORTH_1("cn-north-1", "China (Beijing)"),
CN_NORTHWEST_1("cn-northwest-1", "China (Ningxia)"),
CA_CENTRAL_1("ca-central-1", "Canada (Central)"),
ME_SOUTH_1("me-south-1", "Middle East (Bahrain)"),
AF_SOUTH_1("af-south-1", "Africa (Cape Town)")
;