You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2023/05/17 13:47:00 UTC
[jira] [Commented] (HADOOP-18743) convert declarations of AWS v1 SDK EnvironmentVariableCredentialsProvider to v2 version
[ https://issues.apache.org/jira/browse/HADOOP-18743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17723463#comment-17723463 ]
Steve Loughran commented on HADOOP-18743:
-----------------------------------------
removing from config list simply moves onto no AWSCredentials
this is progress of a kind...
{code}
======================================
Trying some list and read operations
2023-05-17 14:45:14,488 [main] INFO diag.StoreDiag (StoreDurationInfo.java:<init>(60)) - Starting: Creating filesystem for s3a://stevel-bucket-1/
2023-05-17 14:45:14,656 [main] INFO diag.StoreDiag (StoreDurationInfo.java:close(137)) - Duration of Creating filesystem for s3a://stevel-bucket-1/: 0:00:170
java.lang.NoClassDefFoundError: com/amazonaws/auth/AWSCredentials
at org.apache.hadoop.fs.s3a.auth.AwsCredentialListProvider.buildAWSProviderList(AwsCredentialListProvider.java:180)
at org.apache.hadoop.fs.s3a.auth.AwsCredentialListProvider.createAWSCredentialProviderSet(AwsCredentialListProvider.java:102)
at org.apache.hadoop.fs.s3a.S3AFileSystem.bindAWSClient(S3AFileSystem.java:945)
at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:597)
{code}
> convert declarations of AWS v1 SDK EnvironmentVariableCredentialsProvider to v2 version
> ---------------------------------------------------------------------------------------
>
> Key: HADOOP-18743
> URL: https://issues.apache.org/jira/browse/HADOOP-18743
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Steve Loughran
> Priority: Major
>
> As I play with the v2 sdk I've cut the v1 sdk from the tools/lib and now I'm getting stack traces about missing class EnvironmentVariableCredentialsProvider
> {code}
> java.io.IOException: From option fs.s3a.aws.credentials.provider java.lang.ClassNotFoundException: Class com.amazonaws.auth.EnvironmentVariableCredentialsProvider not found
> at org.apache.hadoop.fs.s3a.auth.AwsCredentialListProvider.loadAWSProviderClasses(AwsCredentialListProvider.java:128)
> at org.apache.hadoop.fs.s3a.auth.AwsCredentialListProvider.buildAWSProviderList(AwsCredentialListProvider.java:167)
> at org.apache.hadoop.fs.s3a.auth.AwsCredentialListProvider.createAWSCredentialProviderSet(AwsCredentialListProvider.java:102)
> at org.apache.hadoop.fs.s3a.S3AFileSystem.bindAWSClient(S3AFileSystem.java:945)
> at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:597)
> at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3595)
> at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:171)
> at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3696)
> at org.apache.hadoop.fs.FileSystem$Cache.getUnique(FileSystem.java:3653)
> at org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:608)
> at org.apache.hadoop.fs.store.diag.StoreDiag.executeFileSystemOperations(StoreDiag.java:753)
>
> this provider is listed in the fs.s3a.aws.credentials.provider chain
> {code}
> <property>
> <name>fs.s3a.aws.credentials.provider</name>
> <value>
> org.apache.hadoop.fs.s3a.TemporaryAWSCredentialsProvider,
> org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider,
> com.amazonaws.auth.EnvironmentVariableCredentialsProvider,
> org.apache.hadoop.fs.s3a.auth.IAMInstanceCredentialsProvider
> </value>
> ...
> {code}
> Ideally we should remove all v1 dependencies, explicitly (here) and implicitly.
> maybe for the env vars, we should consider adding our own env var provider which could go into branch-3.3 *now* as a single patch, which can then be cherrypicked by anyone who wants it in older releases; the v2 version will work with the new api
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org