Skip to main content
steinsgate
Silver ⭐️⭐️⭐️
Oct 1, 2024 10:04 AM UTC
Solved

How to disable kerberos for HiveServer2

Hello everyone,

We would like to try disabling Hive Kerberos on CDP 7.1.7.

Here are the parameters we tried disabling:

Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml

hive.server2.authentication.kerberos.principal 

hive.server2.authentication.kerberos.keytab

hive.server2.authentication NONE

hive.security.authorization.enabled false

hive.server2.enable.impersonation false

hive.metastore.sasl.enabled false

steinsgate_0-1727776603366.pngsteinsgate_1-1727776618325.png

Hive Service Advanced Configuration Snippet (Safety Valve) for core-site.xml

hadoop.security.authentication simple

hadoop.security.authorization false

steinsgate_3-1727776672222.png

After turning off the following parameters and restarting HiveServer2, we noticed that HiveServer2 still seems to fail due to Kerberos authentication.

steinsgate_5-1727777024931.png

Could you please advise on how to completely disable Kerberos for HiveServer2? Thank you.

 

ajay_riddler
Gold ⭐️
Oct 2, 2024 4:14 PM UTC

@steinsgate 

Its definitely not recommended to disable Kerberos for Hive. However if you still want to disable Kerberos please do it at a cluster level and not at Hive level. This is not a supported / certified combination. Thats to have your cluster kerberos but Hive not kerberized. Its either you cluster is Kerberos enabled or not. 

1 reply

ajay_riddler
Gold ⭐️
Gold ⭐️
Oct 2, 2024 4:14 PM UTC

@steinsgate 

Its definitely not recommended to disable Kerberos for Hive. However if you still want to disable Kerberos please do it at a cluster level and not at Hive level. This is not a supported / certified combination. Thats to have your cluster kerberos but Hive not kerberized. Its either you cluster is Kerberos enabled or not. 

Translate