我正在启动直线以使用在 Kerberos 中添加的帐户来测试 Sentry:
beeline -u "jdbc:hive2://IP:10000/;principal=test_table/domain_name@HADOOP.COM"
Run Code Online (Sandbox Code Playgroud)
但
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
Run Code Online (Sandbox Code Playgroud)
但是,如果我与帐户配置单元连接,它就可以工作!
beeline -u "jdbc:hive2://IP:10000/;principal=hive/domain_name@HADOOP.COM"
Run Code Online (Sandbox Code Playgroud)
为什么会发生这种情况?顺便说一句,我曾经使用kinit过我客户的帐户。