Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

while running shell script through oozie getting error

Highlighted

while running shell script through oozie getting error

while running shell script through oozie getting error org.apache.oozie.action.ActionExecutorException: Could not locate Oozie sharelib , what could be reason for the above error ?

7 REPLIES 7

Re: while running shell script through oozie getting error

Super Mentor

@Anurag Mishra

Can you please check if the Oozie sharelibs have been correctly extracted and present in HDFS location by running below command as oozie user and provide the output?

# oozie admin -oozie http://<OOZIE_HOSR>:11000/oozie -shareliblist 
# su hdfs -c "hdfs dfs -lsr /user/oozie/share/lib 

.

Also have you tried restarting Oozie?

.

Re: while running shell script through oozie getting error

Super Mentor

@Anurag Mishra

Also can you please confirm if you have setup the Oozie Shared Library properly as documented in the following link:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_command-line-installation/content/settin...

Followed by:

# /usr/hdp/current/oozie-server/bin/oozie-setup.sh sharelib create -fs hdfs://$NameNodeHostName:8020 -locallib /usr/hdp/current/oozie-server/oozie-sharelib.tar.gz 

# oozie admin –oozie http://oozie_server:11000/oozie -sharelibupdate

.

Re: while running shell script through oozie getting error

followed same approach , i am submitting job as yarn user ? is there something related to permission

Re: while running shell script through oozie getting error

Super Mentor

@Anurag Mishra

Are you getting any Permission error as well?

If yes then please refer to the following article to know how to run Oozie Job as Yarn user: https://community.hortonworks.com/articles/26593/permission-denied-useryarn-accesswrite-oozie-shell....

.

Re: while running shell script through oozie getting error

no there is no permission error in the log

Re: while running shell script through oozie getting error

Super Mentor

@Anurag Mishra

Please check if your shared lib path is correct according to the user name "yarn"

oozie.libpath=${nameNode}/$(user.name)/share/lib

.

If username is "yarn" then please put the shared lib in the correct HDFS directory as mentioned above.

Re: while running shell script through oozie getting error

New Contributor

@Anurag Mishra

I solved this problem as follows:

First i create a sharelib, after i just update sharelib and works

usr/hdp/current/oozie-server/bin/oozie-setup.sh sharelib create -fs hdfs://ambari.4linux.com.br:8020 -locallib /usr/hdp/current/oozie-server/oozie-sharelib.tar.gz
oozie admin -oozie http://ambari.4linux.com.br:11000/oozie -sharelibupdate
oozie admin -oozie http://ambari.4linux.com.br:11000/oozie -shareliblist
Don't have an account?
Coming from Hortonworks? Activate your account here