hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lohit (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1663) streaming returning 0 when submitJob fails with Exception
Date Fri, 03 Aug 2007 20:58:53 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517636
] 

lohit commented on HADOOP-1663:
-------------------------------

Tested Koji's patch and included a test case for the same. Right now have a simple test with
invalid input for streaming job and expecting an Exception from StreamJob class. Will update
https://issues.apache.org/jira/browse/HADOOP-16

> streaming returning 0 when submitJob fails with Exception
> ---------------------------------------------------------
>
>                 Key: HADOOP-1663
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1663
>             Project: Hadoop
>          Issue Type: Bug
>          Components: contrib/streaming
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>             Fix For: 0.14.0
>
>         Attachments: h-1663-streamexception-simpletestcase.patch, h-1663-streamexception.patch
>
>
> In streaming, if I pass an input filename that doesn't exist, 
> bash-3.00$ hadoop jar hadoop-streaming.jar -mapper "/bin/cat" -reducer "/bin/cat" -input
"inputfoo" -output "output"
> ...
> 07/07/28 07:37:18 ERROR streaming.StreamJob: Error Launching job : Input path doesnt
exist : /user/knoguchi/inputfoo
> bash-3.00$ echo $?
> *0*
> =================
> Copy&Pasting Milind's comment.
> its a hadoop streaming problem. See the code
> below:
> }catch( IOException ioe){
> 	LOG.error("Error Launching job : " + ioe.getMessage());
>       }
>       finally {
>       if (error && (running_ != null)) {
> 	LOG.info("killJob...");
> 	running_.killJob();
>       }
>       jc_.close();
> Note that it catches exception, and does not rethrow it !!!
> =================

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


Mime
View raw message