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

Better error messaging on issuing grant commands in non-authz mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.94.17
    • 0.94.23
    • shell
    • None
    • Reviewed

    Description

      Running the below sequence of steps should give a better error messaging rather than "table not found" error.

      hbase(main):009:0> grant "test", "RWCXA"
      
      ERROR: Unknown table _acl_!
      
      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'
      

      Instead of ERROR: Unknown table acl!, hbase should give out a warning like "Command not supported in non-authz mode(as acl table is only created if authz is turned on)"

      Attachments

        1. HBASE-10834_v2.patch
          2 kB
          Srikanth Srungarapu
        2. HBASE-10834_v3.patch
          0.9 kB
          Srikanth Srungarapu
        3. HBASE-10834_v4.patch
          0.5 kB
          Srikanth Srungarapu
        4. HBASE-10834.patch
          1 kB
          Srikanth Srungarapu

        Activity

          People

            srikanth235 Srikanth Srungarapu
            srikanth235 Srikanth Srungarapu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: