diff options
Diffstat (limited to 'bin/tw-zk-delete-nodes')
-rwxr-xr-x | bin/tw-zk-delete-nodes | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/tw-zk-delete-nodes b/bin/tw-zk-delete-nodes new file mode 100755 index 0000000..b5e995e --- /dev/null +++ b/bin/tw-zk-delete-nodes @@ -0,0 +1,12 @@ +#!/bin/bash + +set -x +set -e + +members=$(echo "ls /messaging/distributedlog/EventBus/" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin) + +for m in $members; do + if [[ $m =~ ^eventbus_system_loadtest_8_ ]]; then + echo "rmr /messaging/distributedlog/EventBus/$m" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin + fi +done |