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

move table and column family attributes to ZK to make them live

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 0.90.0
    • None
    • None

    Description

      This is a first cut at moving table and column family attributes up to ZK where they can be modified any time without requiring a disable/enable table cycle. Adds methods to ZooKeeperWrapper for support server side. Adds methods to HTableInterface for client side access. Client side talks directly to ZK.

      The new hierarchy for attributes in ZK is like:

      /hbase
        /table
          /<table-name>
            /attr
              /<table-attr-name>
              /<family-name>
                /<family-attr-name>
      

      As before attribute names and values are byte[], but now that they are hosted in ZK, the path delimiter ('/') cannot be used.

      Attached patch compiles but has not been tested. I put it up for a concept review. Next step before this is functional is to deprecate the attribute related methods on HTD and HCD and chase through the warnings to find all users who should be updated to use the ZK wrapper or new HTable methods instead. And, of course, then add test cases that successfully complete.

      Attachments

        1. live_attributes.patch
          27 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: