hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13381) KMS clients running in the same JVM should use updated KMS Delegation Token
Date Thu, 28 Jul 2016 19:13:20 GMT

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

Arun Suresh commented on HADOOP-13381:

I agree.. I also prefer what you've done in v03.

Minor nit:
You can maybe replace the huge if else with:

UserGroupInformation ugiToUse = (currentUgiContainsKmsDt() && doAsUser == null) ?
currentUgi : actualUgi;
conn = ugiToUse.doAs(new PrivilegedExceptionAction<HttpURLConnection>() {
  public HttpURLConnection run() throws Exception {
    DelegationTokenAuthenticatedURL authUrl =
        new DelegationTokenAuthenticatedURL(configurator);
    return authUrl.openConnection(url, authToken, doAsUser);

> KMS clients running in the same JVM should use updated KMS Delegation Token
> ---------------------------------------------------------------------------
>                 Key: HADOOP-13381
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13381
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: kms
>    Affects Versions: 2.6.0
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>            Priority: Critical
>         Attachments: HADOOP-13381.01.patch, HADOOP-13381.02.patch, HADOOP-13381.03.patch
> When {{/tmp}} is setup as an EZ, one may experience YARN log aggregation failure after
the very first KMS token is expired. The MR job itself runs fine though.
> When this happens, YARN NodeManager's log will show {{AuthenticationException}} with
{{token is expired}} / {{token can't be found in cache}}, depending on whether the expired
token is removed by the background or not.

This message was sent by Atlassian JIRA

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

View raw message