I am very new to Hadoop. I am trying to run few sample prog. in Standalone (or local) mode. I have installed Cygwin in my windows machine. I am trying to run the command “hadoop version” to verify whether hadoop installed successfully or not. I have downloaded hadoop-2.2.0 version.
I have downloaded hadoop : C:\Users\Pavan\Downloads\
I tried to setup the PATH variable in Cygwin as below
$ echo $JAVA_HOME
C:\Program Files\Java\jdk1.6.0_32
$ export HADOOP_INSTALL=/cygdrive/c/Users/Pavan/Downloads/hadoop
$ export PATH=$PATH:$HADOOP_INSTALL/bin:$HADOOP_INSTALL/sbin
I am trying to run the command “hadoop version” and end up with the following error. Please help me in resolving this error.
$ hadoop version
java.lang.NoClassDefFoundError: org/apache/hadoop/util/VersionInfo
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.VersionInfo
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.hadoop.util.VersionInfo. Program will exit.
Exception in
thread "main"