sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babu, Prashanth" <Prashanth.B...@nttdata.com>
Subject RE: Sqoop 1.4.3 with Hadoop 1.0.1 installation issue : NoClassDefFoundError
Date Tue, 26 Mar 2013 04:07:19 GMT
Did you try sqoop version instead of sqoop -version?
Also, try sqoop help once to see all the available commands.

From: apurva sharma [mailto:apurva.sharma56@gmail.com]
Sent: Saturday, March 23, 2013 12:15 AM
To: user@sqoop.apache.org
Subject: Sqoop 1.4.3 with Hadoop 1.0.1 installation issue : NoClassDefFoundError

Hi All,

I am running into installation errors while installing Sqoop1.4.3 on a single node Hadoop
cluster running Hadoop 1.0.1
Here are the installation steps I did:

1. Get the sqoop tarball
cd /usr/local
curl -O http://www.apache.org/dist/sqoop/1.4.3/sqoop-1.4.3.bin__hadoop-1.0.0.tar.gz

2. Unpack the file
tar -zxvf sqoop-1.4.3.bin__hadoop-1.0.0.tar.gz

3. Set up a symlink
ln -s /usr/local/sqoop-1.4.3.bin__hadoop-1.0.0/ /usr/local/sqoop

4. Add the following to bashrc
export SQOOP_HOME=/usr/local/sqoop

5. reload bashrc

-bash-3.2$ sqoop-version
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/sqoop/Sqoop
Caused by: java.lang.ClassNotFoundException: org.apache.sqoop.Sqoop
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.apache.sqoop.Sqoop.  Program will exit.

There are links like :
but they are not entirely clear to me.
Any help is greatly appreciated.



Disclaimer:This email and any attachments are sent in strictest confidence for the sole use
of the addressee and may contain legally privileged, confidential, and proprietary data. 
If you are not the intended recipient, please advise the sender by replying promptly to this
email and then delete and destroy this email and any attachments without any further use,
copying or forwarding
View raw message