kerberos认证可以通过keytab文件认证用户

1.获取认证密码

klist -kt /etc/hyperbase1/conf/hyperbase.keytab

[root@node11 ~]# klist -kt  /etc/hyperbase1/conf/hyperbase.keytab    
Keytab name: FILE:/etc/hyperbase1/conf/hyperbase.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   0 2020-05-27T16:13:17 hbase/nodexx@TDH
   0 2020-05-27T16:13:17 hbase/nodexx@TDH
   0 2020-05-27T16:13:17 hbase/nodexx@TDH
   0 2020-05-27T16:13:17 hbase/nodexx@TDH
   0 2020-05-27T16:13:17 hbase/nodexx@TDH
   0 2020-05-27T16:13:17 HTTP/nodexx@TDH
   0 2020-05-27T16:13:17 HTTP/nodexx@TDH
   0 2020-05-27T16:13:17 HTTP/nodexx@TDH
   0 2020-05-27T16:13:17 HTTP/nodexx@TDH
   0 2020-05-27T16:13:17 HTTP/nodexx@TDH

2.认证用户

kinit -kt /etc/hyperbase1/conf/hdfs.keytab hbase/nodexx@TDH

你可能感兴趣的:(hadoop,kerberos,认证,linux,认证用户)