[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ravi Gummadi updated MAPREDUCE-1828:
------------------------------------

    Attachment: 1828.patch

Attaching patch fixing the issue.

Please review and provide your comments.

> Job doesn't fail graciously when an invalid mapred.child.env value is 
> specified
> -------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1828
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1828
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>            Reporter: Ravi Gummadi
>            Assignee: Ravi Gummadi
>         Attachments: 1828.patch
>
>
> When invalid input is given to -Dmapred.child.env=, 
> ArrayIndexOutOfBoundsException is seen instead of giving a useful error 
> message.
> bin/hadoop jar hadoop-streaming.jar -Dmapred.child.env="X:Y" -input inp_empty 
> -output out -mapper /bin/cat
> -reducer /bin/cat
> java.lang.Throwable: Child Error at 
> org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:242) Caused by:
> java.lang.ArrayIndexOutOfBoundsException: 1 at
> org.apache.hadoop.mapred.TaskRunner.getVMEnvironment(TaskRunner.java:571) at
> org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:212)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to