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

HBase needs to have the CREATE permission on the parent of its ZooKeeper parent znode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.90.0
    • 0.92.0
    • None
    • None
    • Reviewed

    Description

      Upon startup, HBase attempts to create its zookeeper.parent.znode in ZooKeeper, it does so using ZKUtil.createAndFailSilent which as its name seems to imply will fail silent if the znode exists. But if HBase does not have the CREATE permission on its zookeeper.parent.znode parent znode then the create attempt will fail with a org.apache.zookeeper.KeeperException$NoAuthException and will terminate the process.

      In a production environment where ZooKeeper has a managed namespace it is not possible to give HBase CREATE permission on the parent of its parent znode.

      ZKUtil.createAndFailSilent should therefore be modified to check that the znode exists using ZooKeeper.exist prior to attempting to create it.

      Attachments

        1. HBASE-3238-v3.patch
          3 kB
          Alex Newman
        2. HBASE-3238-v2.patch
          3 kB
          Alex Newman
        3. HBASE-3238.patch
          4 kB
          Alex Newman
        4. 1
          4 kB
          Alex Newman

        Issue Links

          Activity

            People

              posix4e Alex Newman
              herberts Mathias Herberts
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: