Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Solved Go to solution
Highlighted

How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Expert Contributor

Hiveserver2 only supports 1 Authentication method at a time? if so, how to have 2 authentication methods for different clients? And How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Master Collaborator

The trick will be to manage separate hive configs for each HiveServer2 instance. You will need to use different values for authentication properties and the port on which to start.

View solution in original post

7 REPLIES 7
Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Master Collaborator

The trick will be to manage separate hive configs for each HiveServer2 instance. You will need to use different values for authentication properties and the port on which to start.

View solution in original post

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

You can manually startup the second HS2 instance and use --hiveconf to override some of the properties from the standard config.

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Expert Contributor

Thanks Deepesh, Yes, also modification of init.d scripts. Looks like there is no documentation / best practice around it ?

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Master Collaborator

Yes, that is not documented as its not a common configuration/practice.

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

@Saumil Mayani

Please use/test different config groups. This is reference to old docs.

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

Unfortunately config groups are only applicable when the HS2 instances are on different hosts.

Highlighted

Re: How to deploy 2 HiveServer2 processes on same host; one with LDAP authentication and other one with Kerberos authentication

New Contributor

I found this,thread when I am looking to create the 2 HS2 Instance on same Host, with different Authentication. I can create it Manually, but there will be Maintainability issues. Any trick through which we can do it through Ambari2.2.1?

Don't have an account?
Coming from Hortonworks? Activate your account here