Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF95E174AB for ; Sat, 1 Nov 2014 01:51:34 +0000 (UTC) Received: (qmail 69390 invoked by uid 500); 1 Nov 2014 01:51:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 69343 invoked by uid 500); 1 Nov 2014 01:51:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 69332 invoked by uid 99); 1 Nov 2014 01:51:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2014 01:51:34 +0000 Date: Sat, 1 Nov 2014 01:51:34 +0000 (UTC) From: "Vinod Kumar Vavilapalli (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2790) NM can't aggregate logs past HDFS delegation token expiry. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14192905#comment-14192905 ] Vinod Kumar Vavilapalli commented on YARN-2790: ----------------------------------------------- The patch looks good to me, but I may have found issues with the earlier patch at YARN-2704. - Once NMs gets new tokens from RM, it will keep on logging info about them for every localization and log-agregation for that app. - Seems like the system-credentials are never deleted even if the app finishes! If you agree that these are issues, we can fix them either here or separately. > NM can't aggregate logs past HDFS delegation token expiry. > ---------------------------------------------------------- > > Key: YARN-2790 > URL: https://issues.apache.org/jira/browse/YARN-2790 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 2.6.0 > Reporter: Tassapol Athiapinya > Assignee: Jian He > Attachments: YARN-2790.1.patch > > > We shorten hdfs delegation token lifetime, set RM to act as as a proxy user in order to be able to renew the token on behalf of a user submitting the application. Still we see NM log aggregation fail due to token expiry error. > {code} > 2014-10-31 00:11:56,579 INFO logaggregation.AppLogAggregatorImpl (AppLogAggregatorImpl.java:finishLogAggregation(481)) - Application just finished : application_1414705229376_0004 > 2014-10-31 00:11:56,588 WARN ipc.Client (Client.java:run(675)) - Exception encountered while connecting to the server : org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token 75 for user1) is expired > 2014-10-31 00:11:56,589 ERROR logaggregation.AppLogAggregatorImpl (AppLogAggregatorImpl.java:uploadLogsForContainers(233)) - Cannot create writer for app application_1414705229376_0004. Skip log upload this time. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)