HBase
  1. HBase
  2. HBASE-4268

Add utility to entirely clear out ZK

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.92.0
    • Fix Version/s: None
    • Component/s: scripts
    • Labels:
      None

      Description

      In disaster scenarios, sometimes some cruft is left over in ZK, when it would be better to do a truely clean startup. We should add a script which allows the admin to clear out ZK while the cluster is down.

        Activity

        Hide
        stack added a comment -

        Closing as won't fix. I recently used the rmr facility against a 3.4.3 ensemble to clear out a bunch of hbase droppings.

        Show
        stack added a comment - Closing as won't fix. I recently used the rmr facility against a 3.4.3 ensemble to clear out a bunch of hbase droppings.
        Hide
        Ted Yu added a comment -

        Maybe after zookeeper 3.4.5 is released ?

        Show
        Ted Yu added a comment - Maybe after zookeeper 3.4.5 is released ?
        Hide
        Todd Lipcon added a comment -

        Perhaps we can resolve this now, as ZK 3.4.x have now become fairly commonplace?

        Show
        Todd Lipcon added a comment - Perhaps we can resolve this now, as ZK 3.4.x have now become fairly commonplace?
        Hide
        Karthik K added a comment -

        I had put in ZOOKEEPER-729 sometime ago, for the exact reason in the past.

        With zk 3.4.2 , we can delete recursively as :

        ./bin/zkCli.sh rmr /hbase

        From the latest comment, seems like the command has been renamed in future releases though:

        Show
        Karthik K added a comment - I had put in ZOOKEEPER-729 sometime ago, for the exact reason in the past. With zk 3.4.2 , we can delete recursively as : ./bin/zkCli.sh rmr /hbase From the latest comment, seems like the command has been renamed in future releases though:
        Hide
        Todd Lipcon added a comment -

        Nope, I got distracted away from this task a few months ago. I can't seem to find the code that I'd started, either.

        Show
        Todd Lipcon added a comment - Nope, I got distracted away from this task a few months ago. I can't seem to find the code that I'd started, either.
        Hide
        Ted Yu added a comment -

        @Todd:
        Are you working on this feature ?
        I don't see attachment.

        Thanks

        Show
        Ted Yu added a comment - @Todd: Are you working on this feature ? I don't see attachment. Thanks
        Hide
        ramkrishna.s.vasudevan added a comment -

        I have reassigned to you Todd

        Show
        ramkrishna.s.vasudevan added a comment - I have reassigned to you Todd
        Hide
        Todd Lipcon added a comment -

        I actually started this, this afternoon, and forgot to assign to myself. Ram, unless you have some code, mind assigning it to me? Or I can upload what I have if you want to finish it off.

        Show
        Todd Lipcon added a comment - I actually started this, this afternoon, and forgot to assign to myself. Ram, unless you have some code, mind assigning it to me? Or I can upload what I have if you want to finish it off.
        Hide
        Todd Lipcon added a comment -

        yea, ZK 3.4.0 has a recursive delete. I figure we can do something more HBase-specific (eg different flags to determine whether we'd leave cluster ID in place, etc)

        Show
        Todd Lipcon added a comment - yea, ZK 3.4.0 has a recursive delete. I figure we can do something more HBase-specific (eg different flags to determine whether we'd leave cluster ID in place, etc)
        Hide
        stack added a comment -

        I tried to do ./bin/hbase zkcli and then do a 'delete /hbase' but seems like this does not allow removal of non-empty node:

        [zk: localhost:2181(CONNECTED) 2] delete /hbase
        Node not empty: /hbase
        
        Show
        stack added a comment - I tried to do ./bin/hbase zkcli and then do a 'delete /hbase' but seems like this does not allow removal of non-empty node: [zk: localhost:2181(CONNECTED) 2] delete /hbase Node not empty: /hbase

          People

          • Assignee:
            Unassigned
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development