Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.2.0, 4.3.0
-
None
-
None
-
HDP 2.4, Beeline version 1.2.1000.2.4.0.0-169
Description
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
<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>
fails with the error message:
JA008: File does not exist: /user/koernerc/apps/simple-hive-query-wf/query.hive#query.hive
The complete workflow is also available on Github https://github.com/chaosmail/oozie-bugs/tree/master/simple-hive-query/simple-hive-query-wf.