Let's install Hadoop and other components such as NameNode, DataNode, MapReduce, secondary NameNode, and so on using the yum
command available in RHEL distributions:
Install the components using the following commands:
sudo yum clean all; sudo yum install hadoop-hdfs-namenode sudo yum install hadoop-hdfs-secondarynamenode sudo yum install hadoop-0.20-mapreduce-tasktrackerhadoop-hdfs-datanode sudo yum install hbase
Verify whether these components installed successfully using the
rpm –qa<hadoop/hbase>
command:You can start and stop the processes using the following commands:
/usr/lib/hadoop/bin/hadoop-daemon.sh<start/stop><daemon name> /usr/lib/hbase/bin/hbase-daemon.sh<start/stop><daemon name>
Be careful of the sequence of starting and stopping HBase and Hadoop daemon processes.
If we use
start-all.sh
,start-dfs.sh
,start-mapred.sh
, orstart-yarn.sh
to start the HBase/Hadoop cluster, it takes care of the sequence of...