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
119 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,610 points
I can not find the screenshot as mentioned above.

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

Hadoop Streaming job vs regular jobs?

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

answered Mar 21, 2018 in Data Analytics by kurt_cobain
• 9,260 points
20 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
57 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,700 points
13 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,100 points
23 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,000 points
8 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
• 35,640 points
18 views
0 votes
1 answer

"subscript out of bounds" error in while executing simple R program

This is caused by trying to access ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 35,640 points
46 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,610 points
49 views
0 votes
1 answer

mysql connection issue in Spark VM

Dear Learner, Hope you are doing well. Please go ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
46 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.