Cloudera Hue GSSError:没有可用的Kerberos凭据

问题描述 投票:0回答:1

登录到Hue时收到多个相同错误的信息

GSSError: (('Unspecified GSS failure.  Minor code may provide more information', 851968), 
('No Kerberos credentials available (default cache: /var/run/hue/hue_krb5_ccache)

hue.ini已配置为Kerberos

[[kerberos]]
    hue_keytab=/etc/security/keytabs/hue.keytab
    hue_principal=hue/_HOST@REALM

[beeswax]
    auth_username=hue
    use_sasl=true

 [hadoop]
   [[hdfs_clusters]]
     [[[default]]]
        security_enabled=true

   [[yarn_clusters]]
     [[[default]]]
       # Change this if your YARN cluster is Kerberos-secured
       security_enabled=true

** Hue *以hue用户身份运行,并有权访问配置中引用的凭据缓存目录和密钥表。

kerberos hue
1个回答
0
投票
接收到此错误可能意味着kt_renewer服务未运行。

这意味着kinit没有被执行,并且没有存储供Hue使用的凭据。

凭据缓存

默认情况下,Hue(4.6)将Kerberos凭据缓存在文件中,位于:/var/run/hue/hue_krb5_ccache

要验证是否已缓存任何凭据,您可以使用klist

klist "/var/run/hue/hue_krb5_ccache" Ticket cache: FILE:/var/run/hue/hue_krb5_ccache Default principal: hue/_HOST@REALM Valid starting Expires Service principal 03/05/2020 16:06:38 03/06/2020 16:06:38 krbtgt/_HOST@REALM

kt_renewer

您还应该手动执行更新程序,以查看它是否引发任何错误,例如权限问题。

运行kt_renewer

/opt/hue/build/env/bin/hue kt_renewer
© www.soinside.com 2019 - 2024. All rights reserved.