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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        427d 19h 58m 1 stack 29/Oct/12 23:20
        stack made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        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:
        Todd Lipcon made changes -
        Assignee Todd Lipcon [ tlipcon ]
        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
        ramkrishna.s.vasudevan made changes -
        Assignee ramkrishna.s.vasudevan [ ram_krish ] Todd Lipcon [ tlipcon ]
        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.
        ramkrishna.s.vasudevan made changes -
        Field Original Value New Value
        Assignee ramkrishna.s.vasudevan [ ram_krish ]
        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
        Todd Lipcon created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development