Support Questions
Find answers, ask questions, and share your expertise

SQOOP IMPORT in avro format fails

SQOOP IMPORT in avro format fails

New Contributor

SQOOP IMPORT in avro format fails with below error. Please help. Code is given at bottom.

 

Caused by: java.lang.ClassNotFoundException: org.apache.avro.mapred.AvroWrapper at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 13 more

 

 

script:

sqoop import -Dmapreduce.job.user.classpath.first=true --connect jdbc:mysql://localhost/test --table emp --target-dir /user/edureka/tableemp --username root -p \
--delete-target-dir \
--as-avrodatafile \
--compress \
-m 1 \

 

 

1 REPLY 1
Highlighted

Re: SQOOP IMPORT in avro format fails

Expert Contributor

Hi,

 

Can you please share the full console logs when you trigger the Sqoop command, looks like some classes are missing.

 

Regards

Nitish

Don't have an account?