You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2013/08/22 19:15:53 UTC

[jira] [Updated] (HBASE-9302) Column family and qualifier should be allowed to be set as null in grant shell command

     [ https://issues.apache.org/jira/browse/HBASE-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Purtell updated HBASE-9302:
----------------------------------

    Affects Version/s: 0.96.0
                       0.98.0
                       0.92.3
    
> Column family and qualifier should be allowed to be set as null in grant shell command
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-9302
>                 URL: https://issues.apache.org/jira/browse/HBASE-9302
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.3, 0.98.0, 0.96.0
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>
> In 0.94, grant.rb has the following:
> {code}
> Grant users specific rights.
> Syntax : grant <user> <permissions> [<table> [<column family> [<column qualifier>]]
> {code}
> In 0.95.2, when I tried to grant permission on a table to user hrt_1, I got some exception:
> {code}
> hbase(main):003:0> grant 'hrt_1', 'R', 't1'
> ERROR: no method 'grant' for arguments (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingStub,org.jruby.RubyString,org.jruby.java.proxies.ArrayJavaProxy,org.jruby.RubyNil,org.jruby.RubyNil,org.jruby.java.proxies.ArrayJavaProxy) on Java::OrgApacheHadoopHbaseProtobuf::ProtobufUtil
>   available overloads:
>     (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface,java.lang.String,java.lang.String,org.apache.hadoop.hbase.security.access.Permission.Action[])
>     (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface,java.lang.String,org.apache.hadoop.hbase.TableName,byte[],byte[],org.apache.hadoop.hbase.security.access.Permission.Action[])
>     (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.BlockingInterface,java.lang.String,org.apache.hadoop.hbase.security.access.Permission.Action[])
> Here is some help for this command:
> Grant users specific rights.
> Syntax : grant <user> <permissions> <table> <column family> <column qualifier>
> permissions is either zero or more letters from the set "RWXCA".
> READ('R'), WRITE('W'), EXEC('X'), CREATE('C'), ADMIN('A')
> For example:
>     hbase> grant 'bobsmith', 'RWXCA'
>     hbase> grant 'bobsmith', 'RW', 't1', 'f1', 'col1'
> {code}
> Column family and qualifier should be allowed to be set as null in grant shell command

--
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