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.

Oozie jobs are failing with class not found error

Solved Go to solution
Highlighted

Oozie jobs are failing with class not found error

New Contributor

Hi,

All my oozie jobs are failing with java.lang.ClassNotFoundException. Please find complete log attached.

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2273)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$2.call(MRAppMaster.java:524)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$2.call(MRAppMaster.java:501)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.callWithJobClassLoader(MRAppMaster.java:1640)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.createOutputCommitter(MRAppMaster.java:501)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceInit(MRAppMaster.java:287)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$5.run(MRAppMaster.java:1598)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1595)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1526)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2241)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2265)
	... 12 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2147)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2239) 

How can I resolve this issue. Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Oozie jobs are failing with class not found error

@Shravan Kumar,

Can you please run this command and check the output. If it is kerberized environment , run kinit before running the command

oozie admin -oozie http://{oozie-host}:11000/oozie -shareliblist

If the above command doesn't return output like below then run the below mentioned commands as well. Make sure that the below list is returned

[Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig

Create the share lib

# /usr/hdp/<HDP Version>/oozie/bin/oozie-setup.sh sharelib create -fs hdfs://${NAMENODE-HOST}:8020

Update Sharelib

# oozie admin -oozie http://{oozie-host}:11000/oozie -sharelibupdate

Thanks,

Aditya

1 REPLY 1

Re: Oozie jobs are failing with class not found error

@Shravan Kumar,

Can you please run this command and check the output. If it is kerberized environment , run kinit before running the command

oozie admin -oozie http://{oozie-host}:11000/oozie -shareliblist

If the above command doesn't return output like below then run the below mentioned commands as well. Make sure that the below list is returned

[Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig

Create the share lib

# /usr/hdp/<HDP Version>/oozie/bin/oozie-setup.sh sharelib create -fs hdfs://${NAMENODE-HOST}:8020

Update Sharelib

# oozie admin -oozie http://{oozie-host}:11000/oozie -sharelibupdate

Thanks,

Aditya

Don't have an account?
Coming from Hortonworks? Activate your account here