October 5, 2013

How to setup Hadoop?

Linux is the official development and production platform for Hadoop, although Windows is a supported development platform as well. For a Windows box, you’ll need to install cygwin to enable shell and Unix scripts.

1. Go to "http://www.cygwin.com/".

2. Click "Install Cygwin" link.

3. Select the exe file based on your computer capability.

4. Double click to install.

5. Click "Next".

6. Select the root Directory.

7. Select the Local Package Directory.

8. Select Internet Connection.

9. Select Site for Download.

10. Click "Next".

11. Click "Next".

12, Click "Finish" button.

Running Hadoop requires Java (version 1.6 or higher). Mac users should get it from Apple. You can download the latest JDK for other operating systems from Sun at http://java.sun.com/javase/downloads/index.jsp. Install it and remember the root of the Java installation, which we’ll need later.
To install Hadoop, first get the latest stable release at http://hadoop.apache.org/ core/releases.html. After you unpack the distribution, edit the script conf/hadoopenv.sh to set JAVA_HOME to the root of the Java installation you have remembered from earlier. For example, in Mac OS X, you’ll replace this line
# export JAVA_HOME=/usr/lib/j2sdk1.5-sun
with this line
export JAVA_HOME=/Library/Java/Home

Installing Hadoop:

1. Go to "http://hadoop.apache.org/releases.html".

2. Click "Download".

3. Click "Download Release Now".

4. Click the "Mirror Link".

5. Click "Stable".

6. Select the file as given below.

No comments:

Post a Comment