Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E48C210DD4 for ; Sat, 28 Feb 2015 22:32:05 +0000 (UTC) Received: (qmail 69443 invoked by uid 500); 28 Feb 2015 22:32:05 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 69427 invoked by uid 500); 28 Feb 2015 22:32:05 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 69415 invoked by uid 99); 28 Feb 2015 22:32:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2015 22:32:05 +0000 Date: Sat, 28 Feb 2015 22:32:04 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9779) ATSHook does not log the end user if doAs=false (it logs the hs2 server user) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-9779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341812#comment-14341812 ] Thejas M Nair commented on HIVE-9779: ------------------------------------- [~ashettia] Thanks a lot for the patch and testing it out. The changes look good! Can you please also mention if you had doAs=true/false in the above tests, and what you user you ran above 3 tests as ? > ATSHook does not log the end user if doAs=false (it logs the hs2 server user) > ----------------------------------------------------------------------------- > > Key: HIVE-9779 > URL: https://issues.apache.org/jira/browse/HIVE-9779 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.13.0, 0.14.0 > Reporter: Abdelrahman Shettia > Assignee: Abdelrahman Shettia > Attachments: 9979.001.patch, 9979.002.patch > > > When doAs=false, ATSHook should log the end username in ATS instead of logging the hiveserver2 user's name. > The way things are, it is not possible for an admin to identify which query is being run by which user. The end user information is already available in the HookContext. -- This message was sent by Atlassian JIRA (v6.3.4#6332)