Hadoop - Environment Setup for Hadoop Installation.
Hadoop is supported by Linux System So We install the Linux System.
If you are using other than linux , then download the VirtualBox software in it and install linux in virtual box.
We need to set up linux using ssh i.e. Secure Shell So folow the given Steps:
Step 1: Creating Different User for Hadoop.
Create the seperate user for hadoop to isolate Hadoop file System from Unix file System.
>> Open the root using "su".
>> Create new user from root account using command "useradd <username>".
>> Now you can open the exixting user using the command "su <username>".
Example :
Step 2: Key Generation and SSH Setup.
It is required to do different operations such as starting , stopping on a cluster . To authenticate different user of Hadoop , iy=t is required to provide public/private key pair for a Hadoop user and share it with different users.
Commands are used for generating a key value pair:
>> Copy the Public key from id_rsa.pub to authrazed_keys,
>> Provide the owner with read and write permissions.
Example:
Step 3: Installing the Java.
Java is the main prerequisite for Hadoop . Follows the given Step to install Java.
1. Download the JDK Latest Version (Click Here for jump JDK download )
2. Extract the JDK latest version using the following Command
3. Change the location to "/usr/local/". so that it is available for all users.
4. Now set the PATH and JAVA_HOME variables.
Now aplly all changes into the current running System.
>> $ source ~/.bashrc.
5. Use the given commands to configure java alternatives:
6. Now Verify the Java - Version using command java version.
All Requirements for Hadoop Installation are Done.
Links to Tutorial 1. http://firstengineer1.blogspot.in/2016/03/introduction-to-hadoop.html
2. http://firstengineer1.blogspot.in/2016/03/lets-start-with-hadoop.html
3. http://firstengineer1.blogspot.in/2016/04/how-does-hadoop-work-tutorial-3.html