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.
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.
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