我正在启动beeline以使用Kerberos中添加的帐户来测试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

但是,如果我连接到帐户配置单元,则可以正常运行!
 beeline -u "jdbc:hive2://IP:10000/;principal=hive/domain_name@HADOOP.COM"

为什么会发生这种情况?顺便说一句,我在客户的帐户上使用了kinit

最佳答案

对于beeline,“!connect”中的主要参数必须为hive @ domainname,但您的身份以及在hive中可以执行的操作由kinit分配的kerberos tgt控制。

关于hadoop - hive ,直线: Peer indicated failure: GSS initiate failed,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39760948/

10-12 12:52
查看更多