IllegalArgumentException必须指定bucketName参数。 com.amazonaws.services.s3.AmazonS3Client.rejectNull

时间:2015-08-03 08:00:05

标签: hadoop clojure emr cascalog

使用docker build在AWS-EMR群集上运行Clojure jar并获取:

  

IllegalArgumentException必须指定bucketName参数。 com.amazonaws.services.s3.AmazonS3Client.rejectNull`。

4 个答案:

答案 0 :(得分:6)

在我的情况下,它真的是关于桶名。我错误输入s3:///mkay4242(3斜杠)而不是s3://mkay4242

答案 1 :(得分:1)

经过多次尝试之后,在这种情况下,解决方案就是“AWS_ACCESS_KEY'和' AWS_SECRET_KEY'错误的价值观。

答案 2 :(得分:0)

就我而言,我尝试了不同的解决方案,但是我的地区名称不正确。 请从下面给出的区域中选择地区名称

以前,我使用 US East(Ohio)作为区域,但是在属性文件中将其更新为 us-east-2 之后,我的代码成功运行了。 / p>

在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)")
;

答案 3 :(得分:0)

聚会迟到,但请检查您发送给 AWS 的参数。

就我而言,我正在使用存储的 S3 视频开始重新识别任务,我正在发送:

Video: {
    S3Object: {
        Bucket: BUCKET_KEY,
        Name: filename //<- this was null
        }
}