更新时间:2023-04-27 GMT+08:00
分享

ZooKeeper客户端刷新TGT失败

问题

ZooKeeper客户端刷新TGT失败,无法连接ZooKeeper。报错内容如下:

Login: Could not renew TGT due to problem running shell command: '***/kinit -R'; exception was:org.apache.zookeeper.Shell$ExitCodeException: kinit: Ticket expired while renewing credentials

回答

ZooKeeper使用系统命令kinit -R对票据进行刷新,当前MRS版本已经取消了该命令的功能,如需运行长任务,建议使用keytab方式完成鉴权功能。

在“客户端安装路径/ZooKeeper/zookeeper/conf/jaas.conf”配置文件中设置属性“useTicketCache=false”,设置“useKeyTab=true”,并指明keytab路径。

分享:

    相关文档

    相关产品