Oozie job error - java.io.IOException: no configuration specified

I created one oozie workflow for a hive script to load data into a table.

In my workflow.xml file there is

<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> 

The 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 I try to submit my work using the command "oozie job -oozie http: // localhost: 11000 / oozie -config / user / oozie / HiveLoadData / job.properties -submit" I get the following error,

 java.io.IOException: configuration is not specified at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:729) at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:879) at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:604) at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:577) at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:204) configuration is not specified 
+7
hadoop hdfs oozie
source share
1 answer

The path you specify to the -config option must exist on the local drive (not on HDFS). Make sure /user/oozie/HiveLoadData/job.properties exists. ls /user/oozie/HiveLoadData/job.properties on the same machine where you run the oozie job -oozie...

+11
source share

All Articles