}
public static List<HostNamePair> listInstances(Ec2RemoteTestConfig ec2Config) throws Exception {
Ec2Connection ec2 = new TypicaEc2Connection(ec2Config.getAccessId(),
ec2Config.getSecretKey());
return ec2.list();
}
public static Map<String, Integer> generateClusterDescriptor(List<HostNamePair> hostNamePairs,
String clusterName,
String path) throws Exception {