Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Could not find or load main org.apache.sqoop.sqoop

avatar
Explorer

The actual error I am getting is Could not find or load main org.apache.sqoop.sqoop I ran this as adminstrator

runas /user:administrator mklink C:\hadoop\hdp\hadoop-2.7.1.2.4.0.0-169\share\hadoop\yarn\hadoop-yarn-api-2.7.1.2.4.0.0-169.jar C:\hadoop\hdp\sqoop-1.4.6.2.4.0.0-169\lib\hadoop-yarn-api-2.7.1.2.4.0.0-169.jar C:\hadoop\hdp\sqoop-1.4.6.2.4.0.0-169\lib

Set Yarn path (Attched the jpg) set sqoop path (attached the jpg)

Executed the sqoop command after checking the classpath but getting the same error Could not find or load main org.apache.sqoop.sqooploadmainsqoopfail.pdf

Can you please share your thoughts please. Thank you.

1 ACCEPTED SOLUTION

avatar
Super Guru

@fnu rasool

Your SQOOP_HOME may be pointing to other location, please set it like below.

set SQOOP_HOME=C:\hadoop\hdp\sqoop-<version>

View solution in original post

2 REPLIES 2

avatar
Super Guru

@fnu rasool

Your SQOOP_HOME may be pointing to other location, please set it like below.

set SQOOP_HOME=C:\hadoop\hdp\sqoop-<version>

avatar
Explorer

Yes I did and ran the sqoop command again. Verified with Echo %sqoop_home% its showing the details in attached

document. But same issue.

sqoop-config.jpg