hadoop - Oozie Job Error - java.io.IOException: configuration is not specified -


i have created 1 oozie workflow hive script load data in table.

my workflow.xml contains -

<workflow-app xmlns="uri:oozie:workflow:0.4" name="hive-table-insertion">   <start to="insertdata"/>    <action name="insertdata">     <hive xmlns="uri:oozie:hive-action:0.4">       <job-tracker>${jobtracker}</job-tracker>       <name-node>${namenode}</name-node>       <prepare>         <delete path="${workflowroot}/output-data/hive"/>         <mkdir path="${workflowroot}/output-data"/>       </prepare>       <job-xml>${workflowroot}/hive-site.xml</job-xml>       <configuration>         <property>           <name>oozie.hive.defaults</name>           <value>${workflowroot}/hive-site.xml</value>         </property>       </configuration>       <script>load_data.hql</script>     </hive>     <ok to="end"/>     <error to="fail"/>   </action>    <kill name="fail">     <message>hive failed, error message[${wf:errormessage(wf:lasterrornode())}]</message>   </kill>   <end name="end"/> </workflow-app> 

my job.properties file contains -

namenode=hdfs://localhost:8020 jobtracker=localhost:8021 queuename=default workflowroot=hiveloaddata oozie.libpath=${namenode}/user/oozie/share/lib oozie.wf.application.path=${namenode}/user/${user.name}/${workflowroot} 

when try submit job using command "oozie job -oozie http://localhost:11000/oozie -config /user/oozie/hiveloaddata/job.properties -submit" following error,

java.io.ioexception: configuration not specified         @ org.apache.oozie.cli.ooziecli.getconfiguration(ooziecli.java:729)         @ org.apache.oozie.cli.ooziecli.jobcommand(ooziecli.java:879)         @ org.apache.oozie.cli.ooziecli.processcommand(ooziecli.java:604)         @ org.apache.oozie.cli.ooziecli.run(ooziecli.java:577)         @ org.apache.oozie.cli.ooziecli.main(ooziecli.java:204) configuration not specified 

the path give -config parameter must exist on local drive (not on hdfs). make sure /user/oozie/hiveloaddata/job.properties exist - e.g. ls /user/oozie/hiveloaddata/job.properties on same machine execute oozie job -oozie... command


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -