john
john

Reputation: 707

What is the Kerberos method?

I'm trying to connect to hive with jdbc. 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

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

Upvotes: 2

Views: 3556

Answers (3)

Yasir
Yasir

Reputation: 9

I think your keberos ticket is not generated properly

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)
  2. kinit (generates a new ticket)

Then try to connect again.

Upvotes: 0

jeanr
jeanr

Reputation: 1059

Kerberos is an authentication protocol that is used by Hive server (https://en.wikipedia.org/wiki/Kerberos_(protocol))

The problem you are setting is more about a missing library in our pom.xml. Have you include <artifactId>hive-jdbc</artifactId> ?

Upvotes: 2

Related Questions