Step 1) Make sure that your data set name is data and it should be present in hdfs.


hdfs dfs -put /home/edureka/Desktop/data /


Note: Here I have assumed that my data was on Desktop of local machine and from there I have transferred to hdfs.


Step 2)


Note: Please do not copy, paste the commands. Please try them by typing manually.

Firstly, stop oozie if it’s running.


Command: cd /usr/lib/oozie-4.0.0/


Command: ./bin/oozie-stop.sh

Now you need to transfer the WordCountTest directory on hdfs ( / ).

Command: hadoop dfs -put Desktop/LMS/Oozie/WordCountTest /

Giving permissions to Oozie directory.

Command: sudo chmod -R 777 /usr/lib/oozie-4.0.0

Command: sudo chown -R edureka /usr/lib/oozie-4.0.0

Now change the directory to Oozie and start it.

Command: cd /usr/lib/oozie-4.0.0/

Command: ./bin/oozie-start.sh


Step 3)


Run the oozie command.

Command: oozie job -oozie http://localhost:11000/oozie -config /home/edureka/Desktop/LMS/Oozie/WordCountTest/job.properties -run

Let me know if this helps or not.


I will wait for your response.



Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.

We assure you that we will get back to you within 24 hours

 





Regards

Sumit Anand

edureka! Solution Team

Website - www.edureka.co

Edureka claims 1st position at Deloitte's Technology Fast 50 India 2014