hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Chu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-5380) Invalid mapred command should return non-zero exit code
Date Wed, 17 Jul 2013 00:52:49 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710556#comment-13710556
] 

Stephen Chu commented on MAPREDUCE-5380:
----------------------------------------

Thanks a lot, Jason!
                
> Invalid mapred command should return non-zero exit code
> -------------------------------------------------------
>
>                 Key: MAPREDUCE-5380
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5380
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.0.4-alpha
>            Reporter: Stephen Chu
>            Assignee: Stephen Chu
>             Fix For: 3.0.0, 2.3.0, 0.23.10
>
>         Attachments: MAPREDUCE-5380.patch, MAPREDUCE-5380.patch
>
>
> Running the mapred bin script with an invalid command returns exit code 0, but it should
return a non-zero exit code.
> {code}
> [schu@hdfs-snapshots-1 ~]$ hadoop-3.0.0-SNAPSHOT/bin/mapred gibberish
> gibberish - invalid command
> Usage: mapred [--config confdir] COMMAND
>        where COMMAND is one of:
>   pipes                run a Pipes job
>   job                  manipulate MapReduce jobs
>   queue                get information regarding JobQueues
>   classpath            prints the class path needed for running
>                        mapreduce subcommands
>   historyserver        run job history servers as a standalone daemon
>   distcp <srcurl> <desturl> copy file or directories recursively
>   archive -archiveName NAME -p <parent path> <src>* <dest> create a
hadoop archive
> Most commands print help when invoked w/o parameters.
> [schu@hdfs-snapshots-1 ~]$ echo $?
> 0
> [schu@hdfs-snapshots-1 ~]$ 
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message