Dear Phany,
Here is the solution for AuthFailed.
Ensure that the user can properly access the user.keytab file in related paths on the client node.
Ensure that the user's user.principal that is used corresponds to the specified keytab file.
Run the klist -kt keytabpath/user.keytab command to check it.
If the cluster switches the domain name, the principal field used in the URL must be a new domain name.
For example, the default value is hive/hadoop.hadoop.com@HADOOP.COM. If the cluster has switched the domain name, the field must be changed accordingly. For example, if the domain name is abc.com, it is hive/hadoop.abc.com@ABC.COM.
Ensure that authentication is normal and HiveServer can be connected.
Run the following commands on the client:
source $client_home/bigdata_env
kinit username
Run the beeline command on the client to ensure normal running.
Thanks.