}
@Override
protected void beforeConfigure(ClusterActionEvent event)
throws IOException, InterruptedException {
ClusterSpec clusterSpec = event.getClusterSpec();
Cluster cluster = event.getCluster();
doBeforeConfigure(event);
handleFirewallRules(event);
createHadoopConfigFiles(event, clusterSpec, cluster);
addStatement(event, call("retry_helpers"));
addStatement(event, call(
getConfigureFunction(getConfiguration(clusterSpec)),
Joiner.on(",").join(event.getInstanceTemplate().getRoles()),
"-c", clusterSpec.getProvider())
);
}