Hi Folks,
Today we are going for yum installation of CDH4. its pretty easy one.
Requirement
1. Downloading the CDH4 Repo file
NOTE: Please comment you have any problem in it.
Today we are going for yum installation of CDH4. its pretty easy one.
Requirement
- Oracle JDK 1.6
- CentOS 6.4
1. Downloading the CDH4 Repo file
2. Download cloudera cdh4sudo wget -O /etc/yum.repos.d/cloudera-cdh4.repo http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/cloudera-cdh4.repo
3. Formatting the namenodesudo yum install hadoop-0.20-conf-pseudo
4.Starting HDFS Services on respective nodessudo -u hdfs hdfs namenode -format
- Namenode Services on Master Node
sudo service hadoop-hdfs-namenode start
sudo service hadoop-hdfs-secondarynamenode start
- Datanode Services on Master Node(becoz its pseudo mode)
5. Creating Hdfs Directories on Mastersudo service hadoop-hdfs-datanode start
sudo -u hdfs hadoop fs -mkdir /tmp6. Creating Map-reduce Directories on Master node
sudo -u hdfs hadoop fs -chmod -R 1777 /tmp
sudo -u hdfs hadoop fs -mkdir /user
sudo -u hdfs hadoop fs -mkdir -p /var/lib/hadoop-hdfs/cache/mapred/mapred/staging7. Starting Mapreduce Services on master and on Slaves
sudo -u hdfs hadoop fs -chmod 1777 /var/lib/hadoop-hdfs/cache/mapred/mapred/staging
sudo -u hdfs hadoop fs -chown -R mapred /var/lib/hadoop-hdfs/cache/mapred
sudo -u hdfs mkdir -p /var/lib/hadoop-hdfs/cache/mapred/mapred/staging
sudo -u hdfs chmod 1777 /var/lib/hadoop-hdfs/cache/mapred/mapred/staging
sudo -u hdfs chown hdfs:hadoop /var/lib/hadoop-hdfs/cache/mapred
sudo -u hdfs chown -R mapred /var/lib/hadoop-hdfs/cache/mapred
- JobTracker Services on Master Node
sudo service hadoop-0.20-mapreduce-jobtracker start
- TaskTracker Service on master Node
sudo service hadoop-0.20-mapreduce-tasktracker start
sudo -u hdfs hadoop fs -mkdir /user/$USER9. Update export in .profile
sudo -u hdfs hadoop fs -chown $USER /user/$USER
export HADOOP_HOME=/usr/lib/hadoop10. You can check hdfs directory by
sudo -u hdfs hadoop fs -ls /Try running any sample job by cmd below.
sudo -u hdfs hadoop jar /usr/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 5 10
NOTE: Please comment you have any problem in it.