Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

oozie task with sqoop : java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found

avatar
Expert Contributor

I have an oozie task that uses sqoop.

/user/oozie folder has /shared/lib/lib_xyz/ fodler which has the sqoop folder and relevant jars in it.

My job.properties looks like this:

nameNode=hdfs://serverFQDN:8020
jobTracker=serverFQDN:8050
queueName=default
oozie.use.system.libpath=true
oozie.action.sharelib.for.sqoop=hive,hcatalog,sqoop
ozie.libpath=hdfs://serverFQDN:8020/user/oozie/share/lib
oozie.coord.application.path=${nameNode}/user/${user.name}/scheduledimport
start=2016-04-26T00:00Z
end=2016-12-31T00:00Z
workflowAppUri=${nameNode}/user/${user.name}/scheduledimport

I get an error on sqoop task:

java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found

How do I fix this?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Not really. I had to do a fresh reinstall.

View solution in original post

8 REPLIES 8

avatar

Hi @simran kaur

This error is indicating that the jars are not available through the classpath. Are you submitting using oozie.use.system.libpath=true? Could you post the launcher log?

avatar
Expert Contributor

@Ryan Cicak : Which file would be launcher logs? submitting using oozie.use.system.libpath=true? I do have it in my job.properties file if that is what you were asking? I did check the job logs and could not find sqoopMain exception is all that it gets in there.

avatar
Expert Contributor

Hi @simran kaur

Change ozie.libpath=hdfs://serverFQDN:8020/user/oozie/share/lib to

ozie.libpath=hdfs://serverFQDN:8020/user/oozie/shared/lib as you mentioned your oozie lib is under /user/oozie/shared/lib dir.

avatar
Expert Contributor

@Ajay:No, No. Shared was a typo. It's in share/lib only

avatar
Expert Contributor
@simran kaur, it seems like this is a duplicate of the post https://community.hortonworks.com/questions/30437/error-in-oozie-class-orgapacheoozieactionhadoopsqo... where you were able to get past the issue. If you do, please update the solution here and close this thread.

avatar
Expert Contributor

Not really. I had to do a fresh reinstall.

avatar
New Member

@simran kaur Is the issue is solved for you? I am getting the same error (java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found)

Can somebody please help.

avatar
Master Mentor

Please post as new question and supply relevant logs and configs