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

Considering host configurations


Host and DNS configurations play a very import role in communication among the components of Hadoop and HBase. So, we need to have the host domain name forward and backward resolvable. This section will cover the different methods to consider for host configurations.

Host file based

First, we set a hostname for the machine; we change the hostname of the node by changing it into a hostname file, which is found in the /etc/ directory. We can use a command or edit the hostname file.

Command based

The following command sets the new hostname for the system, but if we want to make it persistent, we need to open the hostname file from the /etc/ directory and change it in the file:

sudo hostname <name we need to give for the system>

Have a look at the following example:

sudo hostname slave1.infinity.com

File based

Open the file with the following command:

vi /etc/hostname

Alternatively, you can directly use the following command to give a hostname we want to set...