Today’s post will just be a walk through of the steps required to install Hadoop 2 on Debian Linux. Please note that this is for a single node installation only. This guide is heavily based on the Ubuntu instructions found here.
Install Java
Add Hadoop Users and Groups
Now login as “hduser”.
SSH Certificates
Download Hadoop
Setup Environment Variables
Add the following lines to your ~/.bashrc
Add the following lines to /usr/local/hadoop/etc/hadoop/hadoop-env.sh
Re-login to your machine as hduser, and check the hadoop version.
Configure Hadoop
Add the following lines into the <configuration> node within /usr/local/hadoop/etc/hadoop/core-site.xml
Add the following lines into the <configuration> node within /usr/local/hadoop/etc/hadoop/yarn-site.xml
Make a copy of the mapred-site template file
Add the following lines into the <configuration> node within /usr/local/hadoop/etc/hadoop/mapred-site.xml
Prepare the Filesystem
Add the following lines into the <configuration> node /usr/local/hadoop/etc/hadoop/hdfs-site.xml