Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A4B2200B14 for ; Sat, 4 Jun 2016 02:15:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8932F160A49; Sat, 4 Jun 2016 00:15:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CE5A4160A55 for ; Sat, 4 Jun 2016 02:15:00 +0200 (CEST) Received: (qmail 62493 invoked by uid 500); 4 Jun 2016 00:14:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 62154 invoked by uid 99); 4 Jun 2016 00:14:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2016 00:14:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 589BE2C1F6C for ; Sat, 4 Jun 2016 00:14:59 +0000 (UTC) Date: Sat, 4 Jun 2016 00:14:59 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13155) Implement TokenRenewer to renew and cancel delegation tokens in KMS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 04 Jun 2016 00:15:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315154#comment-15315154 ] Hudson commented on HADOOP-13155: --------------------------------- SUCCESS: Integrated in Hadoop-trunk-Commit #9911 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9911/]) HADOOP-13155. Implement TokenRenewer to renew and cancel delegation (wang: rev 713cb71820ad94a5436f35824d07aa12fcba5cc6) * hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java * hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java * hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSAuthenticationFilter.java * hadoop-common-project/hadoop-common/src/main/resources/META-INF/services/org.apache.hadoop.security.token.TokenRenewer * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/KMSClientProvider.java * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/LoadBalancingKMSClientProvider.java * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/KMSUtil.java * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderDelegationTokenExtension.java > Implement TokenRenewer to renew and cancel delegation tokens in KMS > ------------------------------------------------------------------- > > Key: HADOOP-13155 > URL: https://issues.apache.org/jira/browse/HADOOP-13155 > Project: Hadoop Common > Issue Type: Bug > Components: kms, security > Reporter: Xiao Chen > Assignee: Xiao Chen > Fix For: 2.8.0 > > Attachments: HADOOP-13155.01.patch, HADOOP-13155.02.patch, HADOOP-13155.03.patch, HADOOP-13155.04.patch, HADOOP-13155.05.patch, HADOOP-13155.06.patch, HADOOP-13155.07.patch, HADOOP-13155.pre.patch > > > Service DelegationToken (DT) renewal is done in Yarn by {{org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer}}, where it calls {{Token#renew}} and uses ServiceLoader to find the renewer class ([code|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java#L382]), and invokes the renew method from it. > We seem to miss the token renewer class in KMS / HttpFSFileSystem, and hence Yarn defaults to {{TrivialRenewer}} for DT of such kinds, resulting in the token not being renewed. > As a side note, {{HttpFSFileSystem}} does have a {{renewDelegationToken}} API, but I don't see it invoked in hadoop code base. KMS does not have any renew hook. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org