Alerts and Health Check in the HiveServer show the HiveServer2 process: "Connection to <hiveserver hostname> on port 10000 failed":
Note: HiveServer2 works correctly. The alert in Ambari shown above is misleading.
HiveServer2 has two transport modes:
The ports used may change depending on what has been configured in Ambari. This is what the configuration looks like by default:
If hive.server2.transport.mode is set to "binary" then HiveServer2 will listen on the port set in Hive Server Port, in this case 10000 (this is the default setting).
If hive.server2.transport.mode is set to "http" then HiveServer2 will listen on the port set in hive.server2.thrift.http, in this case 10001.
Ambari is not aware of the possible port changes and the transport mode Ambari will only check for HiveServer2 on the port 10000 which causes this reporting issue if the HTTP mode is used.
This is a reporting issue, if HiveServer2 is working correctly, the alert can be ignored. However, if HiveServer2 goes down, the Hive administrator may not be correctly notified.
To fully resolve this reporting issue: