HBase
  1. HBase
  2. HBASE-10834

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.94.17
    • Fix Version/s: 0.94.23
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      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)"

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

        Activity

          People

          • Assignee:
            Srikanth Srungarapu
            Reporter:
            Srikanth Srungarapu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development