"authentication failed" Displayed on a Shell Client
Symptom
In a cluster of the secure edition, HiveServer is normal. However, after the beeline command is run on a Shell client, the login fails, and authentication failed is displayed. The detailed information is as follows:
Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false Acquire TGT from Cache Credentials are no longer valid Principal is null null credentials from Ticket Cache [Krb5LoginModule] authentication failed No password provided
Possible Causes
- Kerberos authentication for the account is not performed.
- Kerberos authentication account expires.
Troubleshooting Methods
- Perform Kerberos authentication again for the client user.
- Log in to the client again after the authentication.
- It takes about 1 minutes to rectify the fault.
Procedures
- Use the PuTTY to log in to the node where the Hive client is installed as user root.
- Run the following command to enter the client installation directory, for example, /opt/client.
cd /opt/client
- Run the source bigdata_env command to configure the environment variables.
- Run the following command:
kinit component service user
**NOTE: The component service user can be created by the system administrator as required. Change the password of the component service user at the first login. - Run the beeline command to log in to the Hive client.

