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

Put draining function through Admin API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently, there is no Amdin API for draining function. Client has to interact directly with Zookeeper draining node to add and remove draining servers.
      For example, in draining_servers.rb:

        zkw = org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.new(config, "draining_servers", nil)
        parentZnode = zkw.drainingZNode
      
        begin
          for server in servers
            node = ZKUtil.joinZNode(parentZnode, server)
            ZKUtil.createAndFailSilent(zkw, node)
          end
        ensure
          zkw.close()
        end
      

      This is not good in cases like secure clusters with protected Zookeeper nodes.
      Let's put draining function through Admin API.

      Attachments

        1. HBASE-16010-v3.patch
          225 kB
          Jerry He
        2. hbase-16010-v2.patch
          224 kB
          Matt Warhaftig
        3. hbase-16010-v1.patch
          197 kB
          Matt Warhaftig

        Issue Links

          Activity

            People

              mwarhaftig Matt Warhaftig
              jinghe Jerry He
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: