As of the last release, Hadoop 2.2 supports Windows natively. Thus, old workarounds like Cygwin are now un-supported. Please refer to the new documentation mentioned below (and copied here) for latest instructions for Hadoop on Windows.
https://wiki.apache.org/hadoop/Hadoop2OnWindows If you are running Hadoop 1, then please check out branch-1-win and use that for running Hadoop 1 natively on Windows. -----Original Message----- From: Pavan [mailto:[email protected]] Sent: Tuesday, January 28, 2014 8:07 AM To: [email protected] Cc: [email protected] Subject: Re: hadoop setup Hi, Everyone mentioned that using Cygwin we can try Hadoop on windows. Ex:The book "Hadoop: the definitive guide by Tom white" also mentions this. ??? Thanks Pavan kumar d On 28-Jan-2014, at 12:23 AM, Arpit Agarwal <[email protected]> wrote: > 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 <[email protected]> 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. -- 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.
