From yarn-issues-return-27629-apmail-hadoop-yarn-issues-archive=hadoop.apache.org@hadoop.apache.org Wed May 14 15:34:56 2014 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 34C301111D for ; Wed, 14 May 2014 15:34:56 +0000 (UTC) Received: (qmail 85608 invoked by uid 500); 13 May 2014 17:48:16 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 85458 invoked by uid 500); 13 May 2014 17:48:16 -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 85265 invoked by uid 99); 13 May 2014 17:48:16 -0000 Received: from Unknown (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2014 17:48:16 +0000 Date: Tue, 13 May 2014 17:48:16 +0000 (UTC) From: "Jason Lowe (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2050) Fix LogCLIHelpers to create the correct FileContext 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-2050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996685#comment-13996685 ] Jason Lowe commented on YARN-2050: ---------------------------------- bq. remoteAppLogDir.toUri().getScheme() returns null and AbstractFileSystem.createFileSystem doesn't like it if dumpAllContainersLogs calls FileContext.getFileContext(remoteAppLogDir.toUri()) Argh right, I forgot that FileContext is less-than-helpful in this regard. It needs to be something like this: {code} Path qualifiedLogDir = FileContext.getFileContext(getConf()).makeQualified(remoteAppLogDir); FileContext fc = FileContext.getFileContext(qualifiedLogDir.toUri(), getConf()); nodeFiles = fc.listStatus(qualifiedLogDir); {code} This allows the code to handle cases where the remote log dir has been configured to be a different filesystem than the default filesystem. > Fix LogCLIHelpers to create the correct FileContext > --------------------------------------------------- > > Key: YARN-2050 > URL: https://issues.apache.org/jira/browse/YARN-2050 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Ming Ma > Assignee: Ming Ma > Attachments: YARN-2050.patch > > > LogCLIHelpers calls FileContext.getFileContext() without any parameters. Thus the FileContext created isn't necessarily the FileContext for remote log. -- This message was sent by Atlassian JIRA (v6.2#6252)