hive,beeline:peer指示失败:gss initiate失败

bsxbgnwa  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(2786)

我正在使用kerberos中添加的帐户启动beeline来测试sentry:

beeline -u "jdbc:hive2://IP:10000/;principal=test_table/domain_name@HADOOP.COM"

但是

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
    scan complete in 3ms
    Connecting to jdbc:hive2://IP:10000/;principal=test_table/domain_name@HADOOP.COM
    Error: Could not open client transport with JDBC Uri: jdbc:hive2://IP:10000/;principal=test_table/domain_name@HADOOP.COM: Peer indicated failure: GSS initiate failed (state=08S01,code=0)
    Beeline version 1.1.0-cdh5.5.0 by Apache Hive

但是,如果我连接帐户Hive,它的工作!

beeline -u "jdbc:hive2://IP:10000/;principal=hive/domain_name@HADOOP.COM"

为什么会这样?顺便说一下,我以前 kinit 我客户的账户。

xghobddn

xghobddn1#

对于beeline,主要参数在'!“连接”必须是hive@domainname,但是您是谁以及您在配置单元中可以做什么由kerberos的tgt控制,tgt由kinit分配。

相关问题