[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-15 Thread Yang Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794972#comment-13794972
 ] 

Yang Wang commented on HBASE-9570:
--

Have checkouted 0.96 to apply HBASE-9570.02.patch and found the err Nick 
mentioned. Then use Nick’s patch and it worked.

 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13795130#comment-13795130
 ] 

Hudson commented on HBASE-9570:
---

SUCCESS: Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #794 (See 
[https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/794/])
HBASE-9570 With AccessDeniedException, HBase shell would be better to just 
display the error message to be user friendly (Yang Wang) (ndimiduk: rev 
1532163)
* /hbase/trunk/hbase-shell/src/main/ruby/shell/commands.rb


 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13795528#comment-13795528
 ] 

Hudson commented on HBASE-9570:
---

SUCCESS: Integrated in hbase-0.96 #140 (See 
[https://builds.apache.org/job/hbase-0.96/140/])
HBASE-9570 With AccessDeniedException, HBase shell would be better to just 
display the error message to be user friendly (Yang Wang) (ndimiduk: rev 
1532398)
* /hbase/branches/0.96/hbase-shell/src/main/ruby/shell/commands.rb


 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0, 0.96.1

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-15 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13796285#comment-13796285
 ] 

Hudson commented on HBASE-9570:
---

FAILURE: Integrated in hbase-0.96-hadoop2 #89 (See 
[https://builds.apache.org/job/hbase-0.96-hadoop2/89/])
HBASE-9570 With AccessDeniedException, HBase shell would be better to just 
display the error message to be user friendly (Yang Wang) (ndimiduk: rev 
1532398)
* /hbase/branches/0.96/hbase-shell/src/main/ruby/shell/commands.rb


 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0, 0.96.1

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794324#comment-13794324
 ] 

Nick Dimiduk commented on HBASE-9570:
-

Forgive my JRuby ignorance but this patch looks like it's unwrapping 
TableNotFound, NoSuchColumnFamily, and TableExists exceptions an extra time. Is 
that intentional?

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794330#comment-13794330
 ] 

Nick Dimiduk commented on HBASE-9570:
-

I take it back, this appears to work as previously.

{noformat}
hbase(main):001:0 create 'foo', 'f'
0 row(s) in 6.5330 seconds

= Hbase::Table - foo
hbase(main):002:0 create 'foo', 'f'

ERROR: Table already exists: foo!
...
{noformat}

Will commit later today unless someone objects.

[~stack] do you want this in 0.96?

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794341#comment-13794341
 ] 

stack commented on HBASE-9570:
--

[~ndimiduk] please.  usability.

 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
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794790#comment-13794790
 ] 

Nick Dimiduk commented on HBASE-9570:
-

Err, make that patch for 0.96.

 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794820#comment-13794820
 ] 

Hadoop QA commented on HBASE-9570:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12608415/HBASE-9570-0.96.01.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
Please justify why no new tests are needed for this 
patch.
Also please list what manual steps were performed to 
verify this patch.

{color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7541//console

This message is automatically generated.

 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-14 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13794849#comment-13794849
 ] 

Hudson commented on HBASE-9570:
---

SUCCESS: Integrated in HBase-TRUNK #4617 (See 
[https://builds.apache.org/job/HBase-TRUNK/4617/])
HBASE-9570 With AccessDeniedException, HBase shell would be better to just 
display the error message to be user friendly (Yang Wang) (ndimiduk: rev 
1532163)
* /hbase/trunk/hbase-shell/src/main/ruby/shell/commands.rb


 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
Assignee: Yang Wang
Priority: Minor
 Fix For: 0.98.0

 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch, 
 HBASE-9570-0.96.01.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-13 Thread Yang Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13793887#comment-13793887
 ] 

Yang Wang commented on HBASE-9570:
--

HI Nick, 
I updated a new patch and it changed as you suggested, please help review 
again. Thanks.

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch


 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 was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-10-13 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13793907#comment-13793907
 ] 

Hadoop QA commented on HBASE-9570:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12608232/HBASE-9570.02.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
Please justify why no new tests are needed for this 
patch.
Also please list what manual steps were performed to 
verify this patch.

{color:green}+1 hadoop1.0{color}.  The patch compiles against the hadoop 
1.0 profile.

{color:green}+1 hadoop2.0{color}.  The patch compiles against the hadoop 
2.0 profile.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

{color:red}-1 site{color}.  The patch appears to cause mvn site goal to 
fail.

{color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7535//console

This message is automatically generated.

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch, HBASE-9570.02.patch


 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 
 

[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-25 Thread Nick Dimiduk (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13778252#comment-13778252
 ] 

Nick Dimiduk commented on HBASE-9570:
-

bq. Yes, the entire message could be found in 
$HBASE_HOME/logs/hbase-regionserver.log 

That's technically true. However, to find the exception, you'd have to know 
which server threw it to begin with. From the client perspective, the full 
message description would be lost via this patch.

I agree with you from the usability perspective though. Can't you use the 
existing translate_hbase_exceptions method for this purpose?

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch


 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


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-25 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13778354#comment-13778354
 ] 

Hadoop QA commented on HBASE-9570:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12605137/HBASE-9570.01.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
Please justify why no new tests are needed for this 
patch.
Also please list what manual steps were performed to 
verify this patch.

{color:green}+1 hadoop1.0{color}.  The patch compiles against the hadoop 
1.0 profile.

{color:green}+1 hadoop2.0{color}.  The patch compiles against the hadoop 
2.0 profile.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

 {color:red}-1 core tests{color}.  The patch failed these unit tests:
   org.apache.hadoop.hbase.thrift.TestThriftServer

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7384//console

This message is automatically generated.

 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
Priority: Minor
 Attachments: HBASE-9570, HBASE-9570.01.patch


 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 
 

[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-22 Thread Jean-Marc Spaggiari (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13774004#comment-13774004
 ] 

Jean-Marc Spaggiari commented on HBASE-9570:


lgtm then. +1.

 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


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-19 Thread Jean-Marc Spaggiari (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13772513#comment-13772513
 ] 

Jean-Marc Spaggiari commented on HBASE-9570:


Sound good to me, but can't we log the entire message somewhere just in case we 
want to look at it?

 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


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-18 Thread Yang Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770586#comment-13770586
 ] 

Yang Wang commented on HBASE-9570:
--

Manually tested the attached patch, with it the display is as follows:
{noformat}
[u1@bdpe-wy conf]$ hbase shell
HBase Shell; enter 'helpRETURN' for list of supported commands.
Type exitRETURN to leave the HBase Shell
Version 0.97.0-SNAPSHOT, rUnknown, Wed Sep 18 16:47:53 CST 2013

hbase(main):001:0 scan 't1'
ROW  COLUMN+CELL

ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient 
permissions for user 'u1' for scanner open on table t1

Here is some help for this command:
...
{noformat}

 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


[jira] [Commented] (HBASE-9570) With AccessDeniedException, HBase shell would be better to just display the error message to be user friendly

2013-09-18 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770654#comment-13770654
 ] 

Hadoop QA commented on HBASE-9570:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12603776/HBASE-9570
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
Please justify why no new tests are needed for this 
patch.
Also please list what manual steps were performed to 
verify this patch.

{color:green}+1 hadoop1.0{color}.  The patch compiles against the hadoop 
1.0 profile.

{color:green}+1 hadoop2.0{color}.  The patch compiles against the hadoop 
2.0 profile.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

  {color:green}+1 site{color}.  The mvn site goal succeeds with this patch.

{color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7291//console

This message is automatically generated.

 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)