[ 
https://issues.apache.org/jira/browse/HADOOP-14135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16052605#comment-16052605
 ] 

Mingliang Liu commented on HADOOP-14135:
----------------------------------------

[[email protected]], {{S3AUtils#createAWSCredentialProvider}} is the entry 
point of creating AWSCredentialProvider, and it has the binding URI. If we need 
to log or debug, can we use it here? If you want runtime exception contains the 
bucket name, is bucket name enough? If so, we can surely add this back. I am 
not sure the full path of URI is needed to credential provider.

> Remove URI parameter in AWSCredentialProvider constructors
> ----------------------------------------------------------
>
>                 Key: HADOOP-14135
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14135
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>             Fix For: 2.9.0, 3.0.0-alpha4, 2.8.2
>
>         Attachments: HADOOP-14135.000.patch, HADOOP-14135.001.patch, 
> HADOOP-14135.002.patch, HADOOP-14135.003.patch
>
>
> This was from comment in [HADOOP-13252].
> It looks like the URI parameter is not needed for our AWSCredentialProvider 
> constructors. This was useful because we relied on URI parameter for 
> retrieving user:pass. Now in binding URIs, we have
> {code}
> 279 S3xLoginHelper.Login creds = getAWSAccessKeys(binding, conf);
> 280         credentials.add(new BasicAWSCredentialsProvider(
> 281                 creds.getUser(), creds.getPassword()));
> {code}
> This way, we only need configuration object (if necessary) for all 
> AWSCredentialProvider implementations. The benefit is that, if we create 
> AWSCredentialProvider list for DynamoDB, we don't have to pass down the 
> associated file system URI. This might be useful to S3Guard tools.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to