hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2861) Timeline DT secret manager should not reuse the RM's configs.
Date Fri, 16 Jan 2015 15:42:39 GMT

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

Hudson commented on YARN-2861:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #2026 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2026/])
YARN-2861. Fixed Timeline DT secret manager to not reuse RM's configs. Contributed by Zhijie
Shen (jianhe: rev 9e33116d1d8944a393937337b3963e192b9c74d1)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/timeline/security/TimelineDelegationTokenSecretManagerService.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMSecretManagerService.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java
* hadoop-yarn-project/CHANGES.txt


> 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
>             Fix For: 2.7.0
>
>         Attachments: YARN-2861.1.patch, YARN-2861.2.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)

Mime
View raw message