【Hadoop】Acquire TGT from Cache, Credentials are no longer valid

解决办法:

#更新 kerberos id
kinit  id

问题现象:

#Java 代码运行 beeline 命令时报下面错误
Acquire TGT from Cache
Credentials are no longer valid
Principal is null
null credentials from Ticket Cache
[Krb5LoginModule] authentication failed
No password provided

问题原因
kerberos 认证过期失效。
在这里插入图片描述

#详细日志信息

2020-02-17 17:33:18.0 删除临时表成功。drop table default.tl_cust_001_vt_temp
2020-02-17 17:33:18.0 开始创建TEXT临时表,beeline -e "create table default.tl_cust_001_vt_temp ROW FORMAT DELIMITED FIELDS TERMINATED BY '' STORED AS TEXTFILE LOCATION '/home/temp/tl_cust_001' as select * from default.tl_cust_001 "
2020-02-17 17:33:19.828 Connecting to jdbc:hive2://192.168.120.116:2181,192.168.120.37:2181,192.168.120.24:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;sasl.qop=auth-conf;auth=KERBEROS;principal=hive/hadoop.be98ccbb_f0fa_41f2_a158_1a1b33713d81.com@BE98CCBB_F0FA_41F2_A158_1A1B33713D81.COM
2020-02-17 17:33:19.929 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
2020-02-17 17:33:19.930 Acquire TGT from Cache
2020-02-17 17:33:19.947 Credentials are no longer valid
2020-02-17 17:33:19.948 Principal is null
2020-02-17 17:33:19.948 null credentials from Ticket Cache
2020-02-17 17:33:19.948 [Krb5LoginModule] authentication failed
2020-02-17 17:33:19.948 No password provided
2020-02-17 17:33:20.636 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

你可能感兴趣的:(hadoop)