Data EngineeringBig DataHadoop
Hadoop Setup in Windows
Quick guide to installing Hadoop on Windows with Cygwin, including Java configuration and verification steps.
5 October 2011 · 1 min read
This post explains quickly how to install Hadoop on Windows for development. I used Windows XP, but you can follow the same steps to configure a standalone setup for Hadoop.
- Download the latest stable release from the Hadoop website.
- If you are on Windows you also need Cygwin — download it from its website and choose to install the
opensshandrsyncpackages. (When you download Hadoop, the file/src/core/overview.htmllists the required software.) - Add the following to your Windows
PATHvariable:;c:\cygwin\bin;c:\cygwin\usr\bin - Copy the Hadoop zip file to
/usr/localdirectory. Rename thehadoop.x.xfolder to a simple name such ashadoop. - To make the
JAVA_HOMEsetup easy, I copied Java directly intousr/local/lib/jdk1.7.0. - Open the file
conf/hadoop-env.shand set theJAVA_HOMEvariable:
# The java implementation to use. Required.
export JAVA_HOME=/usr/local/lib/jdk1.7.0
If you are copying Java to the default Windows path like C:\Program Files\Java, you need to escape the space with \.
- To test that the configuration has been done properly, run the following on the Cygwin command prompt:
cd /usr/local/hadoop
bin/hadoop version
It should show output like:
Hadoop 0.20.203.0
Subversion http://svn.apache.org/...
Compiled by XXX on XXX
If you see this, the setup is complete.