illegalargumentexception必须指定bucketname参数com.amazonaws.services.s3.amazons3client.rejectnull

b5lpy0ml  于 2021-06-02  发布在  Hadoop
关注(0)|答案(3)|浏览(620)

运行clojure jar 在aws emr集群上使用 (hfs-textline) 获得:
illegalargumentexception必须指定bucketname参数。com.amazonaws.services.s3.amazon3client.rejectnull`。

nzk0hqpo

nzk0hqpo1#

在多次尝试之后,本例中的解决方案是“aws\u access\u key”和“aws\u secret\u key”的值错误。

kq4fsx7k

kq4fsx7k2#

在我的情况下,我尝试了不同的解决方案,但我的地区名称不正确。请从下面给出的区域名称中选择
以前我使用useast(俄亥俄州)作为一个地区,但是在属性文件中将其更新为useast-2之后,我的代码成功运行。
在application.properties文件中

aws.s3.region=美国东部(俄亥俄州)

aws.s3.region=美国东部-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)")
;
2nc8po8w

2nc8po8w3#

在我看来,这真的是关于bucketname的。我打错了 s3:///mkay4242 (3个斜杠)而不是 s3://mkay4242 .

相关问题