[ https://issues.apache.org/jira/browse/IMPALA-3188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Armstrong resolved IMPALA-3188. ----------------------------------- Resolution: Cannot Reproduce This is quite old. Please reopen if this reoccurs and you can show how to reproduce. > Impala jdbc client impersonate failed > ------------------------------------- > > Key: IMPALA-3188 > URL: https://issues.apache.org/jira/browse/IMPALA-3188 > Project: IMPALA > Issue Type: Bug > Components: Security > Affects Versions: Impala 2.2.1 > Environment: kerberos+sentry > Reporter: nilone > Priority: Minor > > I want to impersonate different users in my java code, so I try to find some > options for JDBC connection. > this is my test: > /bin/beeline -u > "jdbc:hive2://192.168.128.131:21050/;principal=impala/bd-131@MYCDH;impala.doas.user=eda" > still show current user is hue , > 0: jdbc:hive2://192.168.128.131:21050/> show tables; > {color:red}Error: AuthorizationException: User 'hue/bd-131@MYCDH' does not > have privileges to access: default.* (state=HY000,code=0) > {color} > the document say:" > Impala 1.2 adds a new startup option for impalad , > --authorized_proxy_user_config . When you specify this > option, users whose names you specify (such as hue ) can impersonate another > user. The name of the user > whose privileges are used is passed using the HiveServer2 configuration > property impala.doas.user . > " -- This message was sent by Atlassian Jira (v8.3.4#803005)