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

Kerberos authentication failed on CDP7

程序员文章站 2024-02-28 11:41:16
...

CDP and Kerberos authentication failed

CDP使能Kerberos后,使用hdfs查看文件系统,认证不通过

引用自:
https://blog.csdn.net/woloqun/article/details/90676083

报错信息:

[[email protected] qun]# hdfs dfs -ls /
19/05/29 18:06:15 WARN ipc.Client: Exception encountered while connecting to the server : org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]
ls: Failed on local exception: java.io.IOException: org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]; Host Details : local host is: "hadoop001/172.17.239.230"; destination host is: "hadoop001":8020;

解决办法:将krb5.conf文件中的default_ccache_name注释掉,然后执行kdestroy,重新kinit,问题解决

[libdefaults]
dns_lookup_realm = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_realm = HADOOP.COM
#default_ccache_name = KEYRING:persistent:%{uid}
相关标签: kerberos