InterruptedException, KeeperException {
final BlurConfiguration localConf = getBlurConfiguration(configuration);
int shardPort = localConf.getInt(BLUR_SHARD_BIND_PORT, 40020);
String nodeNameHostname = ThriftServer.getNodeName(configuration, BLUR_SHARD_HOSTNAME);
String nodeName = nodeNameHostname + ":" + (shardPort + shardServer);
ZooKeeper zk = new ZooKeeperClient(getZkConnectionString(), 30000, new Watcher() {
@Override
public void process(WatchedEvent event) {
}
});
String onlineShardsPath = ZookeeperPathConstants
.getOnlineShardsPath(org.apache.blur.utils.BlurConstants.BLUR_CLUSTER);
String path = onlineShardsPath + "/" + nodeName;
zk.delete(path, -1);
zk.close();
}