Skip to main content
akash_sabarad
Silver ⭐️⭐️⭐️
May 22, 2019 11:18 AM UTC
Solved

Connecting to Hive in a Kerberized Cluster with local user

Hi , we are in the process of creating HDP 2.6 cluster where in RHEL OS will be integrated with AD for authentication.

We will using AD as the KDC.

My question if we create a local UNIX user called HIVEUSER and use any BI tool to connect to HIVE using this user, will the local user be able to get authenticated and access Hive tables in kerberized cluster?

or the HIVEUSER should be in AD?

Shelton
SheltonAnswer
Gold ⭐️⭐️⭐️
May 22, 2019 7:33 PM UTC

@Akash S

If you have kerberized your cluster using AD, your local user cannot generate a valid Kerberos key unless he/she is present in the AD.


The reason for using AD is to delegate and centralize user creation/authentication/management to Active Directory. You should maybe configure a System Security Services Daemon (SSSD) client to use Active Directory (AD) as an Identity Provider for SSSD


But the best solution is to create your HIVEUSER in AD which will generate the correct keytabs/permission for your user to access hive.

HTH

4 replies

Shelton
SheltonAnswer
Gold ⭐️⭐️⭐️
May 22, 2019 7:33 PM UTC

@Akash S

If you have kerberized your cluster using AD, your local user cannot generate a valid Kerberos key unless he/she is present in the AD.


The reason for using AD is to delegate and centralize user creation/authentication/management to Active Directory. You should maybe configure a System Security Services Daemon (SSSD) client to use Active Directory (AD) as an Identity Provider for SSSD


But the best solution is to create your HIVEUSER in AD which will generate the correct keytabs/permission for your user to access hive.

HTH

Translate
akash_sabarad
Silver ⭐️⭐️⭐️
Jun 25, 2019 2:04 AM UTC

Thank you very much for this answer.

Translate
ask_bill_brooks
Platinum ⭐️
Platinum ⭐️
May 23, 2019 12:59 AM UTC

The above question and the reply thread below were originally posted in the Community Help Track. On Wed May 22 17:55 UTC 2019, a member of the HCC moderation staff moved it to the Security track. The Community Help Track is intended for questions about using the HCC site itself.

Translate
Bill Brooks, Community Moderator Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
Shelton
Gold ⭐️⭐️⭐️
May 26, 2019 5:47 PM UTC

@Akash S

Any updates?

Translate