hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Vasudev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4913) Yarn logs should take a -out option to write to a directory
Date Fri, 13 May 2016 14:55:13 GMT

    [ 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


Mime
View raw message