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 C5977200828 for ; Fri, 13 May 2016 16:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C4357160A16; Fri, 13 May 2016 14:55:14 +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 176611602BE for ; Fri, 13 May 2016 16:55:13 +0200 (CEST) Received: (qmail 79637 invoked by uid 500); 13 May 2016 14:55:13 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 79614 invoked by uid 99); 13 May 2016 14:55:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 14:55:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1A95D2C1F5D for ; Fri, 13 May 2016 14:55:13 +0000 (UTC) Date: Fri, 13 May 2016 14:55:13 +0000 (UTC) From: "Varun Vasudev (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4913) Yarn logs should take a -out option to write to a directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 May 2016 14:55:14 -0000 [ https://issues.apache.org/jira/browse/YARN-4913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282754#comment-15282754 ] Varun Vasudev commented on YARN-4913: ------------------------------------- [~xgong] - couple of issues with the latest patch - # Can you please change the help message for -out to "Local directory for storing individual container logs. The container logs will be stored based on the node the container ran on." # When I give a bad location for the -out option, the command just prints an exception and hangs {code} varun@ubuntu:/var/hadoop/hadoop-3.0.0-SNAPSHOT$ date Tue May 10 23:04:59 IST 2016 varun@ubuntu:/var/hadoop/hadoop-3.0.0-SNAPSHOT$ yarn logs -applicationId application_1462885405905_0003 -out /application_1462885405905_0003 Exception in thread "main" java.nio.file.AccessDeniedException: /application_1462885405905_0003 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:383) at java.nio.file.Files.createDirectory(Files.java:630) at java.nio.file.Files.createAndCheckIsDirectory(Files.java:734) at java.nio.file.Files.createDirectories(Files.java:720) at org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.createPrintStream(LogCLIHelpers.java:538) at org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAllContainersLogs(LogCLIHelpers.java:334) at org.apache.hadoop.yarn.client.cli.LogsCLI.fetchApplicationLogs(LogsCLI.java:814) at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCLI.java:215) at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsCLI.java:249) ^C varun@ubuntu:/var/hadoop/hadoop-3.0.0-SNAPSHOT$ date Tue May 10 23:06:10 IST 2016 varun@ubuntu:/var/hadoop/hadoop-3.0.0-SNAPSHOT$ {code} > Yarn logs should take a -out option to write to a directory > ----------------------------------------------------------- > > Key: YARN-4913 > URL: https://issues.apache.org/jira/browse/YARN-4913 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Xuan Gong > Assignee: Xuan Gong > Attachments: YARN-4913.1.patch, YARN-4913.2.patch, YARN-4913.3.patch, YARN-4913.4.patch, YARN-4913.5.1.patch, YARN-4913.5.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org