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

Column family and qualifier should be allowed to be set as null in grant shell command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.3, 0.98.0, 0.96.0
    • 0.98.0, 0.96.0
    • None
    • None
    • Reviewed

    Description

      In 0.94, grant.rb has the following:

      Grant users specific rights.
      Syntax : grant <user> <permissions> [<table> [<column family> [<column qualifier>]]
      

      In 0.95.2, when I tried to grant permission on a table to user hrt_1, I got some exception:

      hbase(main):003:0> grant 'hrt_1', 'R', 't1'
      
      ERROR: java.lang.NullPointerException: null
      
      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'
      

      Column family and qualifier should be allowed to be set as null in grant shell command

      Attachments

        1. 9302.txt
          1.0 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: