We’ll submit our first workflow, a shell action example, but first we have to modify some parameters in the job.properties file.
The 2 main (and mandatory) files are job.properties and workflow.xml : the former including parameters, the latter the definition itself.

Here we have to modify the jobTracker to point to the ResourceManager, so it goes from localhost:8021 to sandbox.hortonworks.com:8050

The nameNode goes from hdfs://localhost:8020 to hdfs://sandbox.hortonworks.com:8020, the other parameters doesn’t need any change.

Now to be submitted, the workflow.xml needs to be put on HDFS, because Oozie server works only with files on HDFS (and this is an important point since it can lead you to further mistakes : for example custom hdfs-site.xml or hive-site.xml will need to be put somewhere on HDFS for Oozie to know them)

In the job.properties example we put that path to NN/user/ambari-qa/examples/apps/shell, so let’s make that :

3 Comments

I followed your tutorial but I get error JA006. It stays in running state with the JA006 error code. How can I fix that? I started my history server but still I get the same error. I am using hdfs 2.7.1.2.3 and oozie 4.2.0.2.3.