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 "lqjacklee (JIRA)" <ji...@apache.org> on 2018/11/20 14:56:00 UTC

[jira] [Commented] (HADOOP-15650) Add custom InstanceProfileCredentialsProvider with more resilience to throttling

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

lqjacklee commented on HADOOP-15650:
------------------------------------

[~stevel@apache.org] There are two ways to implement the function :

1, Invoke method by reflection, and use the dynamic proxy add monitor and log feature.

2, Rewrite the logic, and not use the AWS code.

which one do you prefer?

> Add custom InstanceProfileCredentialsProvider with more resilience to throttling
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-15650
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15650
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.1.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> Add our own InstanceProfileCredentialsProvider class which uses the AWS implementation to retrieve credentials from EC2's instance info, but more resilient to overloading.
> # pass in client config with retry logic (HADOOP-15603)
> # use Invoke.retry() to retry
> # log/measure failures
> # maybe use the Async feature of the AWS SDK class, so that credential renewer doesn't block IO.
> # be shared amongst all AWS auth chains which need these credentials.
> The singleton we current use for IAM auth doesn't do async, which is good as it ensures that we don't prematurely close it when {{AWSCredentialProviderList.close()}} closes its children.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org