Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-15-2018 12:47 PM - edited 09-16-2022 06:13 AM
Hi Guys,
I have set --authorized_proxy_user_config for required user and connecting impala using hive-jdbc url with impala.doas.user for proxy authentication but unable get expected results(getting kerberos principal user databases/results instead of proxy user databases/results). Getting same results with beeline and Java code using hive & impala drivers also.
Cluster enabled with Kerberos & Sentry & SSL & HDFS Encryption.
Please do let me know Impala does support Impersonation or not?
Thanks,
Ram G
Created 05-23-2018 01:19 AM
Created 05-23-2018 01:19 AM
Created on 05-23-2018 01:55 AM - edited 05-23-2018 06:55 AM
Thanks Eric for the confirmation.
Is there any timeline for support this?
Regards,
RamG
Created 09-10-2018 05:32 PM
It somehow does, Hue is using it, e.g. https://github.com/cloudera/hue/blob/master/apps/beeswax/src/beeswax/server/hive_server2_lib.py#L592
Created 09-10-2018 11:08 PM
Created 09-11-2018 09:08 AM
Thank you Eric!
Created on 11-25-2020 04:14 AM - edited 11-25-2020 04:16 AM
https://docs.cloudera.com/documentation/enterprise/latest/topics/impala_delegation.html
according to the link above Impala supports impersonation, however the client should to be using HiveServer2, not JDBC
Created 11-30-2020 09:09 AM
@PyMeH that's not right. The Impala JDBC driver does use the HS2 protocol - JDBC is the java language interface and HS2 is the client-server network protocol.
You should be able to use impersonation with JDBC. You'd need to configure Impala to allow a particular user to delegate - https://docs.cloudera.com/documentation/enterprise/latest/topics/impala_delegation.html
Then there is a DelegationUID option for the driver that I believe specifies the user to delegate to - https://docs.cloudera.com/documentation/other/connectors/impala-jdbc/latest/Cloudera-JDBC-Driver-for...
Created on 11-30-2020 09:14 AM - edited 11-30-2020 09:28 AM
@Tim Armstrong any hints how to configure the JDBC connection to use impersonation?
Assuming I use the recommended Cloudera drivers, can you send a code snippet that invokes a simple SQL query on behalf of some user
Thanks!