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 6898817219 for ; Fri, 6 Feb 2015 18:36:36 +0000 (UTC) Received: (qmail 51697 invoked by uid 500); 6 Feb 2015 18:36:36 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 51650 invoked by uid 500); 6 Feb 2015 18:36:36 -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 51639 invoked by uid 99); 6 Feb 2015 18:36:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 18:36:36 +0000 Date: Fri, 6 Feb 2015 18:36:36 +0000 (UTC) From: "Jason Lowe (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-3144) Configuration for making delegation token failures to timeline server not-fatal 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-3144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309585#comment-14309585 ] Jason Lowe commented on YARN-3144: ---------------------------------- Thanks, Jon! We're almost there, but on the final review before commit I found one last thing that I think should be fixed. My apologies for not catching it sooner: {code} + } catch (Exception e ) { + if (timelineServiceBestEffort) { + LOG.warn("Failed to get delegation token from the timeline server"); + return null; + } {code} I think it's important to log something about the exception that was received, otherwise it can be very frustrating to debug. Not sure if we should log the full exception stack or just the message, but I think we should say more than just it didn't work. > Configuration for making delegation token failures to timeline server not-fatal > ------------------------------------------------------------------------------- > > Key: YARN-3144 > URL: https://issues.apache.org/jira/browse/YARN-3144 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Jonathan Eagles > Assignee: Jonathan Eagles > Attachments: YARN-3144.1.patch, YARN-3144.2.patch, YARN-3144.3.patch > > > Posting events to the timeline server is best-effort. However, getting the delegation tokens from the timeline server will kill the job. This patch adds a configuration to make get delegation token operations "best-effort". -- This message was sent by Atlassian JIRA (v6.3.4#6332)