Installing Apache Hadoop (Single Node)
Installing Apache Hadoop (Single Node)
Agenda
2. Configuring Hadoop
3. Running hadoop
Prerequisites
Linux Distribution
Do I have Java?
As follow:
Installing Java
Verify Installation
type $java -version and you will see the message below:
Type:
ssh localhost
Or http://hadoop.apache.org/releases.html
Downloading Hadoop
1. On your terminal go to: /home/Hadoop (Hadoop is my home directory)
2. Type wget and paste the link you just copied from the Hadoop web page below:
3. See next slide with sample or copy the command below:
wget http://www.eu.apache.org/dist/hadoop/common/hadoop-2.5.2/hadoop-2.5.2.tar.gz
Type ls al, you will see your tar file we just downloaded with the hadoop
files
Type:
This command will put all the content from tar file into the sub folder /local
Go to /usr/local/
Typing: cd /usr/local/
Type:
cd hadoop-2.5.2
Setting up hadoop
Add two new variables to the bash with the commands below:
export HADOOP_HOME=/usr/local/hadoop-2.5.2/
export PATH=$PATH:$HADOOP_HOME/bin
Go to:
/usr/local/hadoop-2.5.2/etc/hadoop
Type:
core-site.xml
hdfs-site.xml
hdfs-site.xml values
hdfs-site.xml values
Go to:
/usr/local/hadoop-2.5.2/bin
Go to /usr/local/hadoop-2.5.2/sbin
Type: