Repository navigation
Integrate the AwsVendedTokenProvider into the UCSingleCatalog #1110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8c8b2f8
61a471f
afa56db
b15820b
ce3d22b
3a285be
494dcc4
8d4d7b3
8b68d44
61e19a0
0ab5f83
cb87dce
41d0c55
172a69f
6bf0f3f
1760b1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,7 +34,9 @@ public GenericCredential initGenericCredential(Configuration conf) { | |||||||||||||||||
| String secretKey = conf.get(UCHadoopConf.S3A_INIT_SECRET_KEY); | ||||||||||||||||||
| String sessionToken = conf.get(UCHadoopConf.S3A_INIT_SESSION_TOKEN); | ||||||||||||||||||
|
|
||||||||||||||||||
| long expiredTimeMillis = conf.getLong(UCHadoopConf.S3A_INIT_CRED_EXPIRED_TIME, 0L); | ||||||||||||||||||
| long expiredTimeMillis = conf.getLong( | ||||||||||||||||||
| UCHadoopConf.S3A_INIT_CRED_EXPIRED_TIME, | ||||||||||||||||||
| Long.MAX_VALUE); | ||||||||||||||||||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tdas , for the fixed credentials case, the expiration time should be infinite. That's why I changed its default value to
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed it because currently we See: Lines 32 to 39 in a7ecc12
So for the Thrown it here for reviewing.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure it's good to set it be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let me think about it.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the integration test in this PR is not really testing refresh at all... its only testing that the first initial cred received from actually gets injected .. thats all. isnt it?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's true. For this PR, the focus is making the For the credential I mean we will start a long-runing job (> 30min), and continuesly run and renew the credentials whenever it's required.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also I can try to add the renewal local unit test, like the |
||||||||||||||||||
| Preconditions.checkState(expiredTimeMillis > 0, "Expired time %s must be greater than 0, " + | ||||||||||||||||||
| "please check configure key '%s'", expiredTimeMillis, UCHadoopConf.S3A_INIT_CRED_EXPIRED_TIME); | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the
CredProsUtilmoved toauthpackage, so those two static fields need to be public.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following changes are fixing the checkstyle validation.