Modify hostname of CDH Hadoop cluster

    Recently, I bought three second-hand hosts and built a CDH cluster by myself.

    Once upon a whim, I used my mobile phone to log in to the CM management page to see if it really worked. I just clicked on it and found that many page links in cdh are using the host name, and my mobile phone cannot modify the hosts.

    Later, I thought that I had a domain name, so I was thinking of naming my host name as my second-level domain name, and then mapping the domain name to the intranet IP of my node.

    So I started to modify it. First, I checked the information on the Internet on how to modify the host name of cdh, but it didn't work. Then I figured out how to modify it myself.

    The first thing that comes to mind is to go to the cdh management interface to find out if there is any direct modification, and search all the places where there is no modification.

    I can only rely on myself, and then I think about it. First, stop the cluster, cloudera mangage does not need to stop, and then modify the hosts file of each node, and also put the /opt/cm-5.3.1/etc/cloudera in all nodes -server_hosts in scm-agent/config.ini, and then switch to cm's homepage, and magically find that there is a prompt to redeploy the configuration file, then redeploy the configuration file, restart the cluster, and magically it is OK.

   After restarting the cluster, there is a small problem, hive cannot connect to the metabase, this is because hive needs to modify the hostname of the connection to the metabase after changing the hostname, and enter the hive configuration

    

You can modify it.

   There are partition information and partition dfs addresses in the hive metadata database (I use mysql), which need to be modified. There are two tables SDS and DBS


OK, that's all for now. If you find something wrong, please correct it.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325915342&siteId=291194637