.

Pages

Friday, March 4, 2011

Hadoop in Standalone Mode

This section contains instructions for Hadoop installation on ubuntu. This is Hadoop quickstart tutorial to setup Hadoop quickly. This is shortest step by step tutorial of Hadoop installation, here you will get all the commands and their description required to install Hadoop in Standalone mode(single node cluster). In this tutorial, I will describe required steps for deploying Hadoop. The main goal of this tutorial is to get a ”simple” Hadoop installation up and running so that you can play around with the software and learn more about it.

Adding a dedicated Hadoop system user:We will use a dedicated Hadoop user account for running Hadoop. While that’s not required it is recommended because it helps to separate the Hadoop installation from other software applications and user accounts running on the same machine (think: security, permissions, backups, etc)

$ sudo adduser hadoop_admin

Login to hadoop_admin User:

user@ubuntu:~$ su - hadoop_admin

Hadoop Installation:

$ cd /usr/local

$ sudo tar xzf hadoop-0.20.2.tar.gz

$ sudo chown -R hadoop_admin /usr/local/hadoop-0.20.2

Define JAVA_HOME:

Edit configuration file /usr/local/hadoop-0.20.2/conf/hadoop-env.sh and set JAVA_HOME:export JAVA_HOME=path to be the root of your Java installation(eg: /usr/lib/jvm/java-6-sun)

Follow by Email

Note: Some of the items viz. images, logos, trademarks etc, used in this article/website are the property of the respective companies/blog owners. The source of all these items is their public website and they are used for illustration purpose only. Also the opinions expressed are authors own opinions, we do not guarantee any thing about that.