[ https://issues.apache.org/jira/browse/HIVE-26789?focusedWorklogId=829878&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-829878 ]
ASF GitHub Bot logged work on HIVE-26789: ----------------------------------------- Author: ASF GitHub Bot Created on: 29/Nov/22 20:29 Start Date: 29/Nov/22 20:29 Worklog Time Spent: 10m Work Description: ayushtkn commented on code in PR #3813: URL: https://github.com/apache/hive/pull/3813#discussion_r1035250375 ########## service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java: ########## @@ -328,7 +328,8 @@ public Object run() throws HiveSQLException { if (!embedded) { LogUtils.registerLoggingContext(queryState.getConf()); } - ShimLoader.getHadoopShims().setHadoopQueryContext(queryState.getQueryId()); + ShimLoader.getHadoopShims() + .setHadoopQueryContext(queryState.getQueryId() + " User:" + parentSessionState.getUserName()); Review Comment: I removed the space itself, Issue Time Tracking ------------------- Worklog Id: (was: 829878) Time Spent: 50m (was: 40m) > 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: 50m > 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)