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 464B810B96 for ; Wed, 22 Jan 2014 20:15:29 +0000 (UTC) Received: (qmail 86516 invoked by uid 500); 22 Jan 2014 20:15:26 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 86321 invoked by uid 500); 22 Jan 2014 20:15:25 -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 86148 invoked by uid 500); 22 Jan 2014 20:15:24 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 86000 invoked by uid 99); 22 Jan 2014 20:15:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 20:15:22 +0000 Date: Wed, 22 Jan 2014 20:15:21 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6122) Implement show grant on 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-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879125#comment-13879125 ] Ashutosh Chauhan commented on HIVE-6122: ---------------------------------------- Are you concerned about backward-compat? That we show all privileges for user with {{ show grant user hive_test_user }} as oppose to only user-level earlier. Than in HIVE-5928 a new plugin api is implemented, so we can make backward incompatible change on new api, instead of modifying behavior for existing syntax of old api. Also, HIVE-5929 has impl of that api. In other words, only with {{ set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory }} {{ show grant user hive_test_user }} will show all privileges for user, otherwise old behavior. > Implement show grant on > ---------------------------------- > > Key: HIVE-6122 > URL: https://issues.apache.org/jira/browse/HIVE-6122 > Project: Hive > Issue Type: Improvement > Components: Authorization > Reporter: Navis > Assignee: Navis > Priority: Minor > Attachments: HIVE-6122.1.patch.txt, HIVE-6122.2.patch.txt, HIVE-6122.3.patch.txt > > > Currently, hive shows privileges owned by a principal. Reverse API is also needed, which shows all principals for a resource. > {noformat} > show grant user hive_test_user on database default; > show grant user hive_test_user on table dummy; > show grant user hive_test_user on all; > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)