[
https://issues.apache.org/jira/browse/MAPREDUCE-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108593#comment-13108593
]
Ravi Teja Ch N V commented on MAPREDUCE-2754:
---------------------------------------------
The problem is the order of redirection of logs was wrong.
{code:title=MapReduceChildJVM.java|borderStyle=solid}
vargs.add("1>" + getTaskLogFile(logDir, TaskLog.LogName.STDERR));
vargs.add("2>" + getTaskLogFile(logDir, TaskLog.LogName.STDOUT));
{code}
It should be 1>STDOUT and 2>STDERR.
Attached patch for the same.
> MR-279: Error messages are being moved to stdout instead of stderr
> ------------------------------------------------------------------
>
> Key: MAPREDUCE-2754
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2754
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.0
> Reporter: Ramya Sunil
> Assignee: Ravi Teja Ch N V
> Priority: Blocker
> Fix For: 0.23.0
>
> Attachments: MAPREDUCE-2754.patch
>
>
> Error messages flagging the reason for app failures are currently being moved
> to stdout of container logs instead of stderr.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira