Help Center/ ROMA Connect/ Troubleshooting/ Data Sources/ MRS Hive Data Source Connection Failed
Updated on 2022-12-01 GMT+08:00

MRS Hive Data Source Connection Failed

Cause Analysis

The possible causes are as follows:

  • The private IP address specified in the MRS Hive configuration file cannot communicate with the IP address of the FDI data plane. As a result, the connection fails.
  • HDFS URL is set to the root directory hdfs:///hacluster, but the user of the machine-machine account does not have the administrator permissions. As a result, the connection fails.

Solution

  • Bind an EIP to the MRS Hive server and change the IP address in the configuration file to the EIP. Then, add the dfs.client.use.datanode.hostname configuration item to the hdfs-site.xml fil, and set the value to true.
  • Change Machine-machine Username to the name of a user with the administrator permission or change HDFS URL to a directory on which the user has sufficient permissions.

If the connection still fails after the preceding operations are performed, rectify the fault by referring to Data Source Connection Failed.