[ https://issues.apache.org/jira/browse/HIVE-26789?focusedWorklogId=830388&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-830388 ]
ASF GitHub Bot logged work on HIVE-26789: ----------------------------------------- Author: ASF GitHub Bot Created on: 01/Dec/22 15:39 Start Date: 01/Dec/22 15:39 Worklog Time Spent: 10m Work Description: ayushtkn commented on code in PR #3813: URL: https://github.com/apache/hive/pull/3813#discussion_r1037270100 ########## cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java: ########## @@ -250,12 +250,13 @@ CommandProcessorResponse processLocalCmd(String cmd, CommandProcessor proc, CliS } // Set HDFS CallerContext to queryId and reset back to sessionId after the query is done - ShimLoader.getHadoopShims().setHadoopQueryContext(qp.getQueryState().getQueryId()); + ShimLoader.getHadoopShims() + .setHadoopQueryContext(qp.getQueryState().getQueryId() + "_User:" + ss.getUserName()); Review Comment: Changed Issue Time Tracking ------------------- Worklog Id: (was: 830388) Time Spent: 2h (was: 1h 50m) > Add UserName in CallerContext for queries > ----------------------------------------- > > Key: HIVE-26789 > URL: https://issues.apache.org/jira/browse/HIVE-26789 > Project: Hive > Issue Type: Improvement > Reporter: Ayush Saxena > Assignee: Ayush Saxena > Priority: Major > Labels: pull-request-available > Time Spent: 2h > Remaining Estimate: 0h > > HDFS Audit logs if impersonation is false, tracks only the Hive user in the > audit log, Can pass the actual user as part of the CallerContext, so that can > be logged as well for better tracking -- This message was sent by Atlassian Jira (v8.20.10#820010)