protected void beforeConfigure(ClusterActionEvent event)
throws IOException, InterruptedException {
ClusterSpec clusterSpec = event.getClusterSpec();
Cluster cluster = event.getCluster();
Instance instance = cluster.getInstanceMatching(
role(HadoopNameNodeClusterActionHandler.ROLE));
InetAddress namenodePublicAddress = instance.getPublicAddress();
InetAddress jobtrackerPublicAddress = namenodePublicAddress;
String hadoopConfigureRunUrl = clusterSpec.getConfiguration().getString(
"whirr.hadoop-configure-runurl", "apache/hadoop/post-configure");
addRunUrl(event, hadoopConfigureRunUrl,