[
https://issues.apache.org/jira/browse/HIVE-15830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15879412#comment-15879412
]
Jason Dere commented on HIVE-15830:
-----------------------------------
A bit confusing, but in ATSHook, user is the HS2 process user (hive).
requestuser is the one that shows the user logged into HS2 and running the
query.
I think the real fix for this is in Driver.execute():
{code}
SessionState ss = SessionState.get();
hookContext = new HookContext(plan, queryState, ctx.getPathToCS(),
ss.getUserName(),
ss.getUserIpAddress(), InetAddress.getLocalHost().getHostAddress(),
operationId,
ss.getSessionId(), Thread.currentThread().getName(),
ss.isHiveServerQuery(), perfLogger);
{code}
ss.getUserName() should be changed to ss.getUserFromAuthenticator() instead.
> Allow additional view ACLs for tez jobs
> ---------------------------------------
>
> Key: HIVE-15830
> URL: https://issues.apache.org/jira/browse/HIVE-15830
> Project: Hive
> Issue Type: Improvement
> Reporter: Siddharth Seth
> Assignee: Siddharth Seth
> Attachments: HIVE-15830.01.patch, HIVE-15830.02.patch,
> HIVE-15830.03.patch, HIVE-15830.05.patch
>
>
> Allow users to grant view access to additional users when running tez jobs.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)