Skip to content

Commit fd5ffb9

Browse files
authored
Merge pull request apache#3 from metamx/update-jets3t
Update jets3t and enable AWSv4 signature
2 parents fa953ef + 2ef749f commit fd5ffb9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hadoop-project/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
<dependency>
652652
<groupId>net.java.dev.jets3t</groupId>
653653
<artifactId>jets3t</artifactId>
654-
<version>0.9.0</version>
654+
<version>0.9.5-mmx1</version>
655655
</dependency>
656656
<dependency>
657657
<groupId>com.amazonaws</groupId>

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void initialize(URI uri, Configuration conf) throws IOException {
8383
new AWSCredentials(s3Credentials.getAccessKey(),
8484
s3Credentials.getSecretAccessKey());
8585
this.s3Service = new RestS3Service(awsCredentials);
86+
this.s3Service.getJetS3tProperties().setProperty("storage-service.request-signature-version", "AWS4-HMAC-SHA256");
8687
} catch (S3ServiceException e) {
8788
handleException(e);
8889
}

0 commit comments

Comments
 (0)