Issue while running Oozie job

0 votes

Hi Team,
While running oozie job I"m getting below error


[edureka@localhost WordCountTest]$ oozie job -oozie http://localhost:11000/oozie -config job.properties -run
Error: E0501 : E0501: Could not perform authorization operation, User: edureka is not allowed to impersonate edureka

Dec 18, 2017 in Data Analytics by Learner
1,409 views

1 answer to this question.

0 votes

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. 

  •    Edit hadoop’s core-site.xml

                   Command: sudo gedit /usr/lib/hadoop-2.2.0/etc/hadoop/core-site.xml


 


 

  • Remove oozie and put edureka as mentioned in below screenshot, save the file and close it.

Restart the cluster.

               Command: sudo service hadoop-master stop

               Command: sudo service hadoop-master start

               Command: hadoop dfsadmin -safemode leave


 

2

  • Edit your job.properties and workflow.xml files. Use jobTracker port as 8032 in both the files and oozie.wf.application.path as ${nameNode}/WordCountTest as mentioned in below snapshots.

                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

  • 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

  • Run the oozie command.

      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.

answered Dec 18, 2017 by Sudhir
• 1,570 points
I can not find the screenshot as mentioned above.

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

Hide code while running markdown html document

Assign echo and warning as false to display ...READ MORE

answered Sep 10, 2019 in Data Analytics by kamal
1,483 views
0 votes
0 answers

mysql connection issue in Spark VM

Hi Abhi, I am getting the following error: I ...READ MORE

Dec 18, 2017 in Data Analytics by Learner
709 views
0 votes
1 answer

Hadoop Streaming job vs regular jobs?

In certain cases, Hadoop Streaming is beneficial ...READ MORE

answered Mar 22, 2018 in Data Analytics by kurt_cobain
• 9,350 points
898 views
0 votes
1 answer

How can I measuring running time of R Code ?

5 ways to measure running time of ...READ MORE

answered Apr 17, 2018 in Data Analytics by anonymous
12,753 views
0 votes
1 answer

How to prevent row names to be written to a file while using

Easily by: write.csv(df, "temp.csv", row.names=FALSE) READ MORE

answered Apr 20, 2018 in Data Analytics by DeepCoder786
• 1,720 points
709 views
0 votes
1 answer

Do-while loop in R

You can use repeat{} condition and check ...READ MORE

answered Jun 14, 2018 in Data Analytics by DataKing99
• 8,250 points
713 views
0 votes
1 answer

How are the job opportunities for R programmers?

R offers bright job prospects for any ...READ MORE

answered Oct 29, 2018 in Data Analytics by Maverick
• 10,840 points
743 views
0 votes
1 answer

"Error in if" while trying to execute simple code in R

This caused non-logical data or missing values passed ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
622 views
0 votes
1 answer

mysql connection issue in Spark VM

Dear Saravana, Hope you are doing great. We would ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
974 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP