Hive Troubleshooting¶
When Test connection or an operation fails on a Hive datastore, the error message points to the layer that failed: the credentials or Kerberos ticket, the Hive privileges, or the connection to HiveServer2.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Hive.
Common Errors¶
| Error | Likely Cause | Fix |
|---|---|---|
User is not allowed to impersonate |
The HiveServer2 proxy user configuration does not allow the Qualytics user | Add the Qualytics user to the hadoop.proxyuser.<hive_user>.users property in core-site.xml |
Permission denied: user does not have SELECT privilege |
The user lacks SELECT on the target database or table |
Run GRANT SELECT ON DATABASE <database_name> TO USER <user> |
GSS initiate failed (Kerberos) |
The uploaded keytab no longer matches the key the KDC holds, the principal is incorrect, or the KDC is unreachable | Confirm the principal, upload the current keytab, and check that the KDC named in krb5.conf is reachable |
Kerberos Client Principal must name an identity in the keytab |
The Client Principal holds a service principal such as hive/_HOST@EXAMPLE.COM |
Enter the identity in the keytab as Client Principal (for example qualytics@EXAMPLE.COM) and move the service principal to HiveServer2 Service Principal |
Queue <name> does not exist or User <user> cannot submit applications to queue <name> |
Job Queue names a YARN queue that doesn't exist, or the Qualytics user lacks submit rights on it | Check the queue name in the YARN ResourceManager and grant the Qualytics user submit access to it |
Could not open client transport |
HiveServer2 is not reachable or the port (default 10000) is incorrect | Verify the host, port, and that HiveServer2 is running |
Database does not exist |
The database name (schema) in the connection form is incorrect | Verify the database name with SHOW DATABASES in HiveQL |
Detailed Notes¶
Authentication Errors¶
The error GSS initiate failed (Kerberos) or Could not open client transport indicates an authentication or transport problem.
Common causes:
- Stale keytab: the credential was changed on the cluster and the keytab on the connection is the previous one. Upload the current keytab; Qualytics renews tickets from it on its own, so there is nothing to run by hand.
- Wrong principal: the Client Principal does not match the identity in the keytab, or the HiveServer2 Service Principal does not match the one configured in the Hive server.
- KDC unreachable: the Key Distribution Center named in the uploaded
krb5.confis not reachable from your Qualytics deployment. - Realm already claimed: another connection uses the same realm name with a different KDC. One realm name cannot mean two clusters, so give each a distinct realm name or connect them from separate deployments.
- HiveServer2 not running: the HiveServer2 process is not started or has crashed.
Note
If using basic authentication (username/password), ensure HiveServer2 is configured to accept password-based authentication (hive.server2.authentication=CUSTOM or LDAP).
Permission Errors¶
The error Permission denied: user does not have SELECT privilege means the user authenticated successfully but lacks the necessary Hive grants.
Common causes:
- Missing
SELECTon database: the user does not haveSELECTon the target database. - Missing
SELECTon table: the user has database-level access but not table-level access. - Ranger/Sentry policy: if Apache Ranger or Sentry is enabled, permissions are managed through policies rather than Hive
GRANTstatements.
File Errors¶
A Profile or Scan can fail with a message naming the table and a file, or saying that Hive could not read one of its files, ending with not a valid Parquet file (truncated, or not Parquet). Fix or remove the file.
Common causes:
- Truncated file: a job that wrote the file did not finish, or the file was copied partway.
- Not Parquet: a marker or placeholder file sits in the table directory with a Parquet name.
The operation stops at the first such file instead of retrying it. Fix or remove the file, then run the operation again.
Connection Errors¶
The error Could not open client transport or User is not allowed to impersonate indicates a transport or proxy user issue.
Common causes:
- HiveServer2 not reachable: the host or port (default 10000) is incorrect.
- Proxy user not allowed: the
hadoop.proxyuser.<hive_user>.usersproperty incore-site.xmldoes not include the Qualytics user. - SSL required: HiveServer2 requires SSL but the connection is not configured for it.