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

error message is wrong when a wrong namspace is specified in grant in hbase shell

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 2.0.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      Hide
      The security admin instance available within the HBase shell now returns "false" from the namespace_exists? method for non-existent namespaces rather than raising a wrapped NamespaceNotFoundException.

      As a side effect, when the "grant" and "revoke" commands in the HBase shell are invoked with a non-existent namespace the resulting error message now properly refers to said namespace rather than to the user.
      Show
      The security admin instance available within the HBase shell now returns "false" from the namespace_exists? method for non-existent namespaces rather than raising a wrapped NamespaceNotFoundException. As a side effect, when the "grant" and "revoke" commands in the HBase shell are invoked with a non-existent namespace the resulting error message now properly refers to said namespace rather than to the user.

      Description

      In HBase shell, specify a non-existing namespace in "grant" command, such as

      hbase(main):001:0> grant 'a1', 'R', '@aaa'    <--- there is no namespace called "aaa"
      

      The error message issued is not correct

      ERROR: Unknown namespace a1!
      

      a1 is the user name, not the namespace.

      The following error message would be better

      ERROR: Unknown namespace aaa!
      

      or

      Can't find a namespace: aaa
      

        Attachments

        1. HBASE-15297.v1.patch
          4 kB
          Umesh Agashe

          Issue Links

            Activity

              People

              • Assignee:
                uagashe Umesh Agashe
                Reporter:
                xiangli Xiang Li
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: