欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

使用kerberos的hadoop选择java版本需注意

程序员文章站 2022-05-30 20:14:30
...

使用kerberos的hadoop集群,如果在kerberos配置文件正确,但访问hdfs报错:

 

WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:8020 failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]

 

那就看看你的java版本,是否大于等于jdk 6 update 26。

 

换成jdk 6 25的就能解决。

 

 

相关标签: hadoop kerberos