hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vitthal (Suhas) Gogate (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8532) return code of "source xxx" clause is missing
Date Tue, 21 Oct 2014 04:17:33 GMT

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

vitthal (Suhas) Gogate commented on HIVE-8532:
----------------------------------------------

[~ashutoshc]

Ashutosh, there is a minor fix we found in hive that misses checking the error code and thus
leads higher level oozie action to succeed in spite of the hive query failing.. The planned
change is in cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java file where line 126, need
to capture return code e.g. instead of  "this.processFile(cmd_1);"  use  "ret = this.processFile(cmd_1);"
 Will submit the patch soon. Hope you can help review and commit.  Thx.

> return code of "source xxx" clause is missing
> ---------------------------------------------
>
>                 Key: HIVE-8532
>                 URL: https://issues.apache.org/jira/browse/HIVE-8532
>             Project: Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.12.0, 0.13.1
>            Reporter: Gordon Wang
>
> When executing "source <hql-file>"  clause, hive client driver does not catch the
return code of this command.
> This behaviour causes an issue when running hive query in Oozie workflow.
> When the "source" clause is put into a Oozie workflow, Oozie can not get the return code
of this command. Thus, Oozie consider the "source" clause as successful all the time. 
> So, when the "source" clause fails, the hive query does not abort and the oozie workflow
does not abort either.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message