Help Center/ MapReduce Service/ Component Operation Guide (LTS) (Paris Region)/ Using Hive/ Common Issues About Hive/ Why Cannot I Connect to HiveServer When I Use IBM JDK to Access the Beeline Client?
Updated on 2022-12-14 GMT+08:00

Why Cannot I Connect to HiveServer When I Use IBM JDK to Access the Beeline Client?

Scenario

When users check the JDK version used by the client, if the JDK version is IBM JDK, the Beeline client needs to be reconstructed. Otherwise, the client will fail to connect to HiveServer.

Procedure

  1. Log in to FusionInsight Manager and choose System > Permission > User. In the Operation column of the target user, choose More > Download Authentication Credential, select the cluster information, and click OK to download the keytab file.
  2. Decompress the keytab file and use WinSCP to upload the decompressed user.keytab file to the Hive client installation directory on the node to be operated, for example, /opt/client.
  3. Run the following command to open the Hive/component_env configuration file in the Hive client directory:

    vi Hive client installation directory/Hive/component_env

    Add the following content to the end of the line where export CLIENT_HIVE_URI is located:
    \; user.principal=Username @HADOOP.COM\;user.keytab=user.keytab file path/user.keytab