Cygwin is not supported. Please see https://wiki.apache.org/hadoop/Hadoop2OnWindows for Windows installation.
Also JAVA_HOME should not have any spaces. On Mon, Jan 27, 2014 at 6:55 PM, pavan <pavan.danthul...@gmail.com> wrote: > Hi , > > > > 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" > > > > > > Thanks > > Pavan Kumar D > > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.