Installing the Hadoop and MapReduce packages
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 ...
Get Learning HBase now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.