Hadoop Setup in Windows

The below post will explain quickly how to install hadoop on windows for development

I used Windows XP  , you can follow the steps to configure standalone setup for hadoop

 

  1. Download the latest stable release from hadoop website
  2. If you are on Windows you also need Cgywin , download from its website and choose to install openssh and rsync packages
    (When you download hadoop in the file /src/core/overview.html , You can find the list of softwares required )
  3. Add path varible in windows as ;c:\cygwin\bin;c:\cygwin\usr\bin
  4. Copy hadoop zip file to /usr/local directory , rename the hadoop.x.x folder to simple name such as hadoop
  5. To make the JAVA_HOME setting up easy , i copied java directly into usr\local\lib\jdk1.7.0 folder
  6. Open the file called conf/hadoop-env.sh and go to JAVA_HOME variable
    Set something like
    # The java implementation to use.  Required.
    export JAVA_HOME=/usr/local/lib/jdk1.7.0
    If you are copying the JAVA in default windows path like C:\Program Files\Java then You need to escale space with \
  7. To test that configuration has been done properly do this on cgywin command prompt

$> cd /usr/local/hadoop
$> bin/hadoop version

It would show output like

Hadoop 0.20.203.0
Subversion http://svn.apache.org/....
Compiled by XXX on XXX

Congrats :) Its done

No comments:

Post a Comment

Please share your views and comments below.

Thank You.