// stop the controller
helixController.stopAsync();
// drop the cluster
dropCluster(clusterId, connection);
connection.disconnect();
}
private static void dropCluster(ClusterId clusterId, HelixConnection connection) {
ClusterAccessor accessor = connection.createClusterAccessor(clusterId);
accessor.dropCluster();