addStatement(event, call(FUNCTION_INSTALL, optArgs.toArray(new String[optArgs.size()])));
}
@Override
protected void beforeConfigure(ClusterActionEvent event) throws IOException, InterruptedException {
Cluster cluster = event.getCluster();
LOG.info("Authorizing firewall");
event.getFirewallManager().addRule(
Rule.create()
.destination(cluster.getInstancesMatching(role(ROLE)))
.ports(CLIENT_PORT, ADMIN_PORT, HTTP_PORT)
);
String servers = Joiner.on(' ').join(getPrivateIps(cluster.getInstances()));
Configuration config = event.getClusterSpec().getConfiguration();
int partitionsPerNode = config.getInt(PARAM_PARTITIONS_PER_NODE, 10);
addStatement(event, call("retry_helpers"));