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 ?
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?
Also can you please confirm if you have setup the Oozie Shared Library properly as documented in the following link:
# /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
followed same approach , i am submitting job as yarn user ? is there something related to permission
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....
Please check if your shared lib path is correct according to the user name "yarn"
If username is "yarn" then please put the shared lib in the correct HDFS directory as mentioned above.
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