You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jian He (JIRA)" <ji...@apache.org> on 2015/01/14 01:03:34 UTC

[jira] [Commented] (YARN-2861) Timeline DT secret manager should not reuse the RM's configs.

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

Jian He commented on YARN-2861:
-------------------------------

thanks Zhijie!  patch doesn't apply any more. needs update. 
"YarnConfiguration.DELEGATION_KEY_UPDATE_INTERVAL_KEY" can be renamed to YarnConfiguration.RM_DELEGATION_KEY_UPDATE_INTERVAL_KEY, similarly for other RM delegation token configs

> Timeline DT secret manager should not reuse the RM's configs.
> -------------------------------------------------------------
>
>                 Key: YARN-2861
>                 URL: https://issues.apache.org/jira/browse/YARN-2861
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>         Attachments: YARN-2861.1.patch
>
>
> This is the configs for RM DT secret manager. We should create separate ones for timeline DT only.
> {code}
>   @Override
>   protected void serviceInit(Configuration conf) throws Exception {
>     long secretKeyInterval =
>         conf.getLong(YarnConfiguration.DELEGATION_KEY_UPDATE_INTERVAL_KEY,
>             YarnConfiguration.DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT);
>     long tokenMaxLifetime =
>         conf.getLong(YarnConfiguration.DELEGATION_TOKEN_MAX_LIFETIME_KEY,
>             YarnConfiguration.DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT);
>     long tokenRenewInterval =
>         conf.getLong(YarnConfiguration.DELEGATION_TOKEN_RENEW_INTERVAL_KEY,
>             YarnConfiguration.DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT);
>     secretManager = new TimelineDelegationTokenSecretManager(secretKeyInterval,
>         tokenMaxLifetime, tokenRenewInterval,
>         3600000);
>     secretManager.startThreads();
>     serviceAddr = TimelineUtils.getTimelineTokenServiceAddress(getConfig());
>     super.init(conf);
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)