Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1829118A1 for ; Wed, 27 Aug 2014 18:52:00 +0000 (UTC) Received: (qmail 14878 invoked by uid 500); 27 Aug 2014 18:52:00 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 14813 invoked by uid 500); 27 Aug 2014 18:52:00 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 14798 invoked by uid 500); 27 Aug 2014 18:52:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 14795 invoked by uid 99); 27 Aug 2014 18:52:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 18:52:00 +0000 Date: Wed, 27 Aug 2014 18:52:00 +0000 (UTC) From: "Brock Noland (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6245) HS2 creates DBs/Tables with wrong ownership when HMS setugi is true 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-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112631#comment-14112631 ] Brock Noland commented on HIVE-6245: ------------------------------------ I have been working on a patch to fix the same thing in HIVE-7890. I tested this patch and it works for me so +1 from my side. Since we've hit this a number of times I actually think we should commit both this one and HIVE-7890. > HS2 creates DBs/Tables with wrong ownership when HMS setugi is true > ------------------------------------------------------------------- > > Key: HIVE-6245 > URL: https://issues.apache.org/jira/browse/HIVE-6245 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.12.0, 0.13.0 > Reporter: Chaoyu Tang > Assignee: Venki Korukanti > Attachments: HIVE-6245.2.patch.txt, HIVE-6245.3.patch.txt, HIVE-6245.4.patch, HIVE-6245.patch > > > The case with following settings is valid but does not work correctly in current HS2: > == > hive.server2.authentication=NONE (or LDAP) > hive.server2.enable.doAs= true > hive.metastore.sasl.enabled=false > hive.metastore.execute.setugi=true > == > Ideally, HS2 is able to impersonate the logged in user (from Beeline, or JDBC application) and create DBs/Tables with user's ownership. -- This message was sent by Atlassian JIRA (v6.2#6252)