Created 07-10-2018 10:16 AM
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)
Created 07-10-2018 10:26 AM
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
.
Created 07-10-2018 10:31 AM
Seems you don't have valid Kerberos ticket, Authenticate your hive and give another try.
Created 07-10-2018 05:48 PM
@Anurag Mishra can you check your kerberos ticket?
# klist -e
Created 07-10-2018 05:48 PM
@Anurag Mishra can you check your kerberos ticket?
# klist -e