Dear Learner,
Hope you are doing well.
To overcome the above error, please use the following steps:
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
Make the below three changes needs to be done.
1.
Command: sudo gedit /usr/lib/hadoop-2.2.0/etc/hadoop/core-site.xml
Restart the cluster.
Command: sudo service hadoop-master stop
Command: sudo service hadoop-master start
Command: hadoop dfsadmin -safemode leave
2
Command: sudo gedit Desktop/LMS/Oozie/WordCountTest/job.properties
Command: sudo gedit Desktop/LMS/Oozie/WordCountTest/workflow.xml
Now you need to transfer the WordCountTest directory on hdfs ( / ).
Command: hadoop dfs -put Desktop/LMS/Oozie/WordCountTest /
3
Command: sudo chmod -R 777 /usr/lib/oozie-4.0.0
Command: sudo chown -R edureka /usr/lib/oozie-4.0.0
Command: cd /usr/lib/oozie-4.0.0/
Command: ./bin/oozie-start.sh
Command: oozie job -oozie http://localhost:11000/oozie -config /home/edureka/Desktop/LMS/Oozie/WordCountTest/job.properties -run
Hope this resolves your query. Please let us know if you need any further help, we will be glad to assist you.