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 task with sqoop : java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found

Solved Go to solution

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

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

Accepted Solutions

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

Expert Contributor

Not really. I had to do a fresh reinstall.

8 REPLIES 8

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

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?

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

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.

Highlighted

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

Rising Star

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.

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

Expert Contributor

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

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

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.

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

Expert Contributor

Not really. I had to do a fresh reinstall.

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

New Contributor

@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.

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

Mentor

Please post as new question and supply relevant logs and configs

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