Search code examples
hadoopoozieoozie-coordinator

error while running example of oozie job


I tried running my first oozie job by following a blog post.

I used oozie-examples.tar.gz, after extracting, placed examples in hdfs.

I tried running map-reduce job in it but unfortunately got an error.

Ran below command:

oozie job -oozie http://localhost:11000/oozie -config /examples/apps/map-reduce/job.properties -run

Got the error:

java.io.IOException: configuration is not specified at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:787) at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:1026) at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:662) at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:615) at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:218) configuration is not specified

I don't know which configuration it is asking for as I am using Cloudera VM and it has by default got all the configurations set in it.


Solution

  • oozie job -oozie http://localhost:11000/oozie -config /examples/apps/map-reduce/job.properties -run

    The -config parameter takes an local path not an HDFS path. The workflow.xml needs to be present in the HDFS and path is defined in the job.properties file with the property:

    oozie.wf.application.path=<path to the workflow.xml>