[
https://issues.apache.org/jira/browse/OOZIE-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15823683#comment-15823683
]
Christoph Körner commented on OOZIE-2773:
-----------------------------------------
[~Jan Hentschel] I tried to build a workflow in analogy to the Shell action
from the Oozie documentation.
{code:title=Shell Action Docs|borderStyle=solid}
<shell xmlns="uri:oozie:shell-action:0.1">
<exec>${EXEC}</exec>
<argument>A</argument>
<argument>B</argument>
<file>${EXEC}#${EXEC}</file> <!--Copy the executable to compute node's
current working directory -->
</shell>
{code}
Hence, a very similar snippet to the Hive Action works
{code:title=Shell Action Sample|borderStyle=solid}
<action name="test-action">
<shell xmlns="uri:oozie:shell-action:0.3">
<exec>script.sh</exec>
<file>shell/script.sh#script.sh</file>
</shell>
<ok to="end"/>
<error to="fail"/>
</action>
{code}
It's not a big problem for me; I just wanted to report the inconsistency. In my
case the link that you provided solved my issue.
> <file> property not working with hive2 action
> ---------------------------------------------
>
> Key: OOZIE-2773
> URL: https://issues.apache.org/jira/browse/OOZIE-2773
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 4.2.0, 4.3.0
> Environment: HDP 2.4, Beeline version 1.2.1000.2.4.0.0-169
> Reporter: Christoph Körner
>
> The beeline client does not consider files linked with the <file> property in
> Hive 2 actions. The file gets successfully linked to the local appcache
> directory, however Oozie tries to access the file from the workflow path.
> A simple job
> {code:borderStyle=solid}
> <action name="test-action">
> <hive2 xmlns="uri:oozie:hive2-action:0.1">
> <jdbc-url>${jdbcURL}</jdbc-url>
> <script>query.hive</script>
> <file>hive/query.hive#query.hive</file>
> </hive2>
> <ok to="end"/>
> <error to="fail"/>
> </action>
> {code}
> fails with the error message:
> {code:borderStyle=solid}
> JA008: File does not exist:
> /user/koernerc/apps/simple-hive-query-wf/query.hive#query.hive
> {code}
> The complete workflow is also available on Github
> https://github.com/chaosmail/oozie-bugs/tree/master/simple-hive-query/simple-hive-query-wf.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)