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

Provide API to check the existence of a namespace which does not require ADMIN permissions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 3.0.0-alpha-1, 1.5.0, 2.3.0
    • None
    • None
    • Reviewed
    • Hide
      This change adds the new method listNamespaces to the Admin interface, which can be used to retrieve a list of the namespaces present in the schema as an unprivileged operation. Formerly the only available method for accomplishing this was listNamespaceDescriptors, which requires GLOBAL CREATE or ADMIN permissions.
      Show
      This change adds the new method listNamespaces to the Admin interface, which can be used to retrieve a list of the namespaces present in the schema as an unprivileged operation. Formerly the only available method for accomplishing this was listNamespaceDescriptors, which requires GLOBAL CREATE or ADMIN permissions.

    Description

      Currently, to check the existence of a namespace, clients can use HBaseAdmin#getNamespaceDescriptor. eEventually on the server-side, this calls AccessController#preGetNamespaceDescriptor which tries to acquire ADMIN permissions for that namespace.

      We should have an API for clients to be able to check the existence of a namespace, without necessarily obtaining the namespace descriptor. Such an API would not require ADMIN permissions.

      Attachments

        1. HBASE-22377-branch-1.patch
          145 kB
          Andrew Kyle Purtell
        2. HBASE-22377-branch-2.patch
          476 kB
          Andrew Kyle Purtell
        3. HBASE-22377.patch
          476 kB
          Andrew Kyle Purtell
        4. HBASE-22377-branch-1.patch
          153 kB
          Andrew Kyle Purtell
        5. HBASE-22377-branch-2.patch
          462 kB
          Andrew Kyle Purtell
        6. HBASE-22377.patch
          461 kB
          Andrew Kyle Purtell
        7. HBASE-22377-branch-1.patch
          153 kB
          Andrew Kyle Purtell
        8. HBASE-22377-branch-2.patch
          462 kB
          Andrew Kyle Purtell
        9. HBASE-22377.patch
          461 kB
          Andrew Kyle Purtell

        Issue Links

          Activity

            People

              apurtell Andrew Kyle Purtell
              ckulkarni Chinmay Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: