Help Center> MapReduce Service> Troubleshooting> Using Hive> WebHCat Fails to Be Started After the Hostname Is Changed
Updated on 2023-11-30 GMT+08:00

WebHCat Fails to Be Started After the Hostname Is Changed

Symptom

WebHCat fails to be started after the hostname is changed.

The following error is reported in the WebHCat startup log (/var/log/Bigdata/hive/webhcat/hive.log) of the corresponding node.

Cause Analysis

  1. The server account of the MRS WebHCat role contains the hostname. If you change the hostname after the cluster installation, WebHCat fails to start.
  2. The one-to-many or many-to-one association between IP addresses and hostnames is configured in the /etc/hosts file. As a result, the IP address and hostname cannot be obtained correctly after the hostname and hostname -i commands are executed.

Solution

  1. Change the hostname of the modified node to the initial hostname of the cluster.
  2. Check whether the /etc/hosts of the node where WebHCat is located is correctly configured.
  3. Restart WebHCat.