hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vrushali C (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5524) Yarn live log aggregation does not throw if command line arg is wrong
Date Mon, 15 Aug 2016 18:50:20 GMT

    [ https://issues.apache.org/jira/browse/YARN-5524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421472#comment-15421472

Vrushali C commented on YARN-5524:

Based on what I am seeing, I don't think this should throw an exception. This was intentionally
added as part of YARN-5363 by [~vinodkv] 

In patch https://issues.apache.org/jira/secure/attachment/12817883/YARN-5363-2016-07-13.1.txt

you can see that in LogsCLI# fetchAllLogFiles, the default is set to fetch all logs if no
option is specified. The fact that the option is spelled differently does not imply the meaning.

And for what it's worth, looks like the option changed (correctly) from "-logFiles" to "-log_files"
in this patch, so perhaps your command was present in history and you happened to run it.

I think this should be closed as "Not a problem". What do you think Prashanth?

> Yarn live log aggregation does not throw if command line arg is wrong
> ---------------------------------------------------------------------
>                 Key: YARN-5524
>                 URL: https://issues.apache.org/jira/browse/YARN-5524
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: log-aggregation
>    Affects Versions: 2.9.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Vrushali C
> When we used wrong command line arg for specify log file pattern, yarn did not throw
any exception instead it pulled entire log onto the client.
> {code}
> [hive@ctr-e20-1468887904486-0007-01-000003 ~]$ yarn logs -applicationId application_1470931023753_0001
-logFiles hive.*2016-08-11-21.* > logs
> {code}
> NOTE: we are using -logFiles instead of -log_files
> This query should have failed.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message