Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ABCF109B7 for ; Wed, 18 Sep 2013 08:04:33 +0000 (UTC) Received: (qmail 11228 invoked by uid 500); 18 Sep 2013 08:03:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 10690 invoked by uid 500); 18 Sep 2013 08:02:39 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 10279 invoked by uid 99); 18 Sep 2013 08:02:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 08:02:09 +0000 Date: Wed, 18 Sep 2013 08:02:09 +0000 (UTC) From: "Yang Wang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly 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/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yang Wang updated HBASE-9570: ----------------------------- Status: Patch Available (was: Open) > With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly > ------------------------------------------------------------------------------------------------------------- > > Key: HBASE-9570 > URL: https://issues.apache.org/jira/browse/HBASE-9570 > Project: HBase > Issue Type: Improvement > Components: shell > Reporter: Yang Wang > Attachments: HBASE-9570 > > > When access unauthorized resource like table, AccessDeniedException will be thrown. In HBase shell, the error message with stack trace will be displayed as follows. It would be better to just display the error message avoiding the stack trace to be user friendly. > {noformat} > ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'u1' for scanner open on table t1 > at org.apache.hadoop.hbase.security.access.AccessController.preScannerOpen(AccessController.java:1116) > at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preScannerOpen(RegionCoprocessorHost.java:1293) > at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:3026) > at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:26971) > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2083) > at org.apache.hadoop.hbase.ipc.RpcServer$CallRunner.run(RpcServer.java:1820) > at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.consumerLoop(SimpleRpcScheduler.java:165) > at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.access$000(SimpleRpcScheduler.java:41) > at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler$1.run(SimpleRpcScheduler.java:113) > at java.lang.Thread.run(Thread.java:662) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira