问题描述
我需要使用hbase委托令牌而不是keytab连接到hbase(从HDP群集外部)。我已经使用TokenUtil API生成了令牌,并将HADOOP_TOKEN_FILE_LOCATION设置为令牌的位置。但是,我无法通过身份验证。我看到以下错误。在spark-submit中设置keytab,可以使相同的代码正常工作。有人可以阐明如何在hbase中使用令牌。
2020-10-28 19:10:12,637 INFO [main-EventThread] zookeeper.ClientCnxn: EventThread shut down
2020-10-28 19:10:18,405 INFO [main] client.RpcretryingCallerImpl: Call exception,tries=6,retries=36,started=5600 ms ago,cancelled=false,msg=Call to myhost.com/myip:16020 Failed on local exception: javax.security.sasl.SaslException: GSS initiate Failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)],details=row '' on table 'hbase:Meta' at region=hbase:Meta,1.1588230740,hostname=myhost.com,16020,1603125468538,seqNum=-1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)