Created 08-09-2018 06:03 AM
Is it possible to enable multiple authentication mechanisms simultaneously in HiveServer2?
e.g. SIMPLE + LDAP, LDAP + Kerberos
Or, selecting PAM authentication and controlling multiple authentication mechanisms in PAM configuration is the solution to my question?
Created 08-09-2018 05:44 PM
No, but you can have multiple hiveserver2 processes configured with different authentication mechanisms.
Lets say you need to have all the auth mechanisms listed above, then you add 1 hiveserver 2 process and configure it with SIMPLE+LDAP and then add another hiveserver2 process and configure it with LDAP+Kerberos.
With ambari this can be done using config groups.
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 08-09-2018 05:44 PM
No, but you can have multiple hiveserver2 processes configured with different authentication mechanisms.
Lets say you need to have all the auth mechanisms listed above, then you add 1 hiveserver 2 process and configure it with SIMPLE+LDAP and then add another hiveserver2 process and configure it with LDAP+Kerberos.
With ambari this can be done using config groups.
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 08-10-2018 12:11 AM
Thank you for your answer and suggestion.
You wrote "configure it with SIMPLE+LDAP and then add another hiveserver2 process and configure it with LDAP+Kerberos". It looks like we can use multiple authentication mechanisms in 1 HS2 process ("SIMPLE+LDAP"), but it is just a copy-and-paste from my question, right? I'm sorry for my confusing expression. "SIMPLE+LDAP" I wrote in my question was intended "using SIMPLE auth and LDAP auth simultaneously".
Unfortunately having 2 HS2 instances is not suited for my case, but in another case, I thought this is helpful if there's strong request to do so.
Created 08-10-2018 01:51 PM
@Takefumi Oide only 1 authentication mechanism per hiveserver2 - sorry for the confusion, I did copy pasted 🙂 - So that would be 4 hiveserver2 with single authentication mechanisms each.
Created 08-10-2018 01:56 PM
OK! Thank you for your reply.
Created 08-11-2018 12:33 AM
Use Knox
Created 08-11-2018 12:55 AM
Thank you for your answer!
Unfortunately, I can't use Knox in my case. But this way is very interesting.