Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

GSS initiation issue while accessing hive from beeline

avatar
I am trying to access the hive from the beeline with below command :
!connect jdbc:hive2://<host>:10000/default;principal=hive/<host>@SOLON.PRD

but it is throwing below error :

 WARN jdbc.HiveConnection: Failed to connect to host:10000
Error: Could not open client transport with JDBC Uri: jdbc:hive2://host:10000/default;principal=hive/host@SOLON.PRD: GSS initiate failed (state=08S01,code=0)
4 REPLIES 4

avatar
Master Mentor

@Anurag Mishra

Do you have a valid kerberos ticket? Please check the output of the following command:

# klist

.

If you do not have a valid kerberos ticket then please check if you have a correct keytab? If yes then please try to do a kinit something like this:

First check the Principal from the keytab

# klist -kte /etc/security/keytabs/hive.service.keytab 

Then do the kinit using that principal & keytab

Following is just an example, you might have your own Keytab with your own custom principal name so you will need to do the kinit accordingly.

Example:

# kinit -kt /etc/security/keytabs/hive.service.keytab hive/kamb25101.example.com@EXAMPLE.COM

# klist

.

avatar
Explorer

Seems you don't have valid Kerberos ticket, Authenticate your hive and give another try.

avatar
Contributor

@Anurag Mishra can you check your kerberos ticket?

# klist -e

avatar
Contributor

@Anurag Mishra can you check your kerberos ticket?

# klist -e