Symptom
When a user starts a HBase client and log in, a login failure occurs.
Possible Causes
- The krb5 file is not configured correctly in the client environment. This cause occurs only in security mode, but not normal mode.
- The username and password file used to access the HBase cluster are not configured in the hbase-site.xml configuration file of the client environment or the password file has expired. This cause occurs only in security mode, but not normal mode.
- The Jar packages in the client environment are inconsistent with those in the cluster.
- The time of the client environment is inconsistent with the time of the cluster and the difference is more than 3 minutes.
Procedure
- (Optional) In security mode, check whether the local krb5 configuration file is consistent with the that in the cluster.
- Configuration file path in the Windows environment: C:\Windows\krb5.ini.
- Configuration file path in the Linux environment: /etc/krb5.conf.
- (Optional) In security mode, check whether the kerberos principal and keytab used for login are correct.
- Check whether the time in the local environment is consistent with the that in the cluster.
- Check whether the local jar packages are consistent with those of the cluster (especially the jar packages related to HBase, ZooKeeper, and Hadoop)

