Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. 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
    
  2. 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>
    
  3. 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, or start-yarn.sh to start the HBase/Hadoop cluster, it takes care of the sequence of...