I am trying to download files from a s3 bucket on the Frankfurt region.
Originally encountered this problem in spark 2.2.1 with hadoop 2.7.5.
I got this message:
com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 400, AWS Service: Amazon S3, AWS Request ID: F6EB301E99C9BC7A, AWS Error Code: null, AWS Error Message: Bad Request, S3 Extended Request ID:
setting
sc.hadoopConfiguration.set("fs.s3a.endpoint", "s3.eu-central-1.amazonaws.com")
Didn't change a thing.
running ./hadoop-2.7.5/bin/hadoop fs -ls s3a://frankfurt-bucket-name
returns the exact same error.
this is my core-site.xml
<configuration>
<property>
<name>fs.s3a.endpoint</name>
<value>s3.eu-central-1.amazonaws.com</value>
</property>
</configuration>
How do can I make hadoop use V4 signature?
fs.s3a.signing-algorithmtoV4on aws-hadoop 2.7.5 and aws sdk 1.7.4 but it didn’t help 🤷🏾♀️ - raam86