hive - oozie job failing with error JA009: bad conf file -
i new in oozie , struggling run simple hiveql using following oozie job. used following workflow.xml , job.properties.
workflow.xml
<workflow-app xmlns="uri:oozie:workflow:0.2" name="init"> <start to="step1"/> <action name="step1"> <hive xmlns="uri:oozie:hive-action:0.2"> <job-tracker>abc</job-tracker> <name-node>def:8020</name-node> <job-xml>workflow.xml</job-xml> <configuration> <property> <name>mapred.child.java.opts</name> <value>-xmx1500m</value> </property> <property> <name>io.sort.mb</name> <value>500</value> </property> <property> <name>dfs.block.size</name> <value>536870912</value> </property> </configuration> <script>oozie_hive_test.hql</script> <param>jarpath=/data/lib/oozie</param> </hive> <ok to="end"/> <error to="end"/> </action> <end name="end"/> </workflow-app>
job.properties
emailto=abc@def.com oozie.libpath=/data/bdegrp/lib/oozie oozie.wf.application.path=/user/an31416/oozie/oozie_test oozielauncherjavaopts=-xmx1500m
to run command used
oozie job -oozie http://xyz:11000/oozie -config ./oozie_test/job.properties -run
but it's failing following errors.
id status ext id ext status err code ------------------------------------------------------------------------------------------------------------------------------------ 0000021-160219180700519-oozie-oozi-w@:start: ok - ok - ------------------------------------------------------------------------------------------------------------------------------------ 0000021-160219180700519-oozie-oozi-w@step1 start_retry- - ja009 id : 0000021-160219180700519-oozie-oozi-w@step1 ------------------------------------------------------------------------------------------------------------------------------------ console url : - error code : ja009 error message : ja009: bad conf file: top-level element not <configuration> external id : - external status : - name : step1 retries : 0 tracker uri : - type : hive started : - status : start_manual ended : -
can me find possible reasons of problem.
oozie expect hive-site.xml
file in tag <job-xml>
, put copy of file in hdfs , use path :
<job-xml>/path/from/root/hive-site.xml</job-xml>
Comments
Post a Comment