Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10621

Unable to grant user permission to namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.0
    • 0.98.1, 0.99.0
    • None
    • None
    • Reviewed

    Description

      In a secure cluster, I tried to grant user 'hrt_1' permission to namespace X

      hbase(main):002:0> grant 'hrt_1', 'W', '@X'
      
      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.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'
      

      Attachments

        1. 10621-v2.txt
          2 kB
          Ted Yu
        2. 10621-v1.txt
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: