Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For running a Oozie Job you'll need workflow.xml and a properties file.<br>For running Basic WordCount Program your workflow.xml will be something like this.</p> <pre><code>&lt;workflow-app xmlns="uri:oozie:workflow:0.1" name="WorkflowRunnerTest"&gt; &lt;start to="intersection0"/&gt; &lt;action name="intersection0"&gt; &lt;map-reduce&gt; &lt;job-tracker&gt;localhost:54101&lt;/job-tracker&gt; &lt;name-node&gt;hdfs://localhost:54100&lt;/name-node&gt; &lt;prepare&gt; &lt;delete path="hdfs://localhost:54100/user/user1/out1"/&gt; &lt;/prepare&gt; &lt;configuration&gt; &lt;property&gt; &lt;name&gt;mapred.job.queue.name&lt;/name&gt; &lt;value&gt;default&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.mapper.class&lt;/name&gt; &lt;value&gt;MapperClass&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.reducer.class&lt;/name&gt; &lt;value&gt;ReducerClass&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.output.key.class&lt;/name&gt; &lt;value&gt;org.apache.hadoop.io.Text&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.output.value.class&lt;/name&gt; &lt;value&gt;org.apache.hadoop.io.IntWritable&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.input.dir&lt;/name&gt; &lt;value&gt;/user/user1/inp&lt;/value&gt; &lt;/property&gt; &lt;property&gt; &lt;name&gt;mapred.output.dir&lt;/name&gt; &lt;value&gt;/user/user1/out1&lt;/value&gt; &lt;/property&gt; &lt;/configuration&gt; &lt;/map-reduce&gt; &lt;ok to="end"/&gt; &lt;error to="fail"/&gt; &lt;/action&gt; &lt;kill name="fail"&gt; &lt;message&gt;Map/Reduce failed, error message&lt;/message&gt; &lt;/kill&gt; &lt;end name="end"/&gt; &lt;/workflow-app&gt; </code></pre> <p><br>job.propertis file will be<br> <code>oozie.wf.application.path=hdfs://localhost:54100/user/user1/oozie/workflow-apps/sample-mr</code></p> <p><br><br>The workflow.xml has to be present in hdfs://localhost:54100/user/user1/oozie/workflow-apps/sample-mr and <b>copy the jar</b> file containing the necessary class into the path hdfs://localhost:54100/user/user1/oozie/workflow-apps/sample-mr/lib .<br><br> <br>The Oozie job can be run from command line by <br></p> <p><code>oozie job -oozie http://localhost:8080/oozie -config map-reduce-job.properties -run</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload