简体   繁体   English

什么是Kerberos方法?

[英]What is the Kerberos method?

I'm trying to connect to hive with jdbc. 我正在尝试使用jdbc连接到hive。 I keep getting this error. 我一直收到这个错误。 I tried looking it up but could not hind anything useful . 我尝试查找它但不能隐藏任何有用的东西。

This is my connection string: jdbc:hive2://hostname.xxx.com:10000/default;principal=hive/hostname.xxx.com@HADOOP_ENV.COM 这是我的连接字符串: jdbc:hive2://hostname.xxx.com:10000/default;principal=hive/hostname.xxx.com@HADOOP_ENV.COM

What is this error: java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Z 这是什么错误: java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Z

Kerberos is an authentication protocol that is used by Hive server ( https://en.wikipedia.org/wiki/Kerberos_(protocol) ) Kerberos是Hive服务器使用的身份验证协议( https://en.wikipedia.org/wiki/Kerberos_(protocol)

The problem you are setting is more about a missing library in our pom.xml. 您正在设置的问题更多是关于我们的pom.xml中缺少的库。 Have you include <artifactId>hive-jdbc</artifactId> ? 你有<artifactId>hive-jdbc</artifactId>吗?

I think your keberos ticket is not generated properly 我认为您的keberos票证生成不正确

Can you try running these two commands in order from the user you are trying to connect: 您可以尝试从您尝试连接的用户按顺序运行这两个命令:

  1. kdestroy (deleted any kerberos ticket generated before) kdestroy(删除之前生成的任何kerberos票)
  2. kinit (generates a new ticket) kinit(生成一张新票)

Then try to connect again. 然后尝试再次连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM