IBM Support

HIVE_22 - Cannot make connection with default hive database starting with URL

Troubleshooting


Problem

  1. This issue can manifest when attempting to open a non-SSL connection with a Hive server instance that has SSL enabled.

  2. This means that you may not have the server’s certificates in your truststore, or you do not have the correct parameters in your JDBC URL.

Symptom

  1. Pipeline fails to start with HIVE_22 error

  2. Checking the logs, there may be an Invalid status 21 error with the following stack trace.

Resolving The Problem

  1. Make sure that you have the Hive server certificate imported in your JVM truststore.

  2. Append the appropriate parameters to your JDBC URL to initiate an SSL connection. For example:

    jdbc:hive2://hostname:10000/default;principal=hive/<host>@REALM;ssl=true
  3. If using a custom truststore, make sure to append the following parameters:

    sslTrustStore=/path/to/truststore;trustStorePassword=password

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM7CU","label":"IBM StreamSets Data Collector"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
15 March 2025

UID

ibm17186181