@Before
  public void setUp() throws Exception {
    defaults = new PropertiesConfiguration();
    defaults.addProperty("hadoop-common.p1", "common1");
    defaults.addProperty("hadoop-common.p2", "common2");
    defaults.addProperty("hadoop-hdfs.p1", "hdfs1");
    defaults.addProperty("hadoop-mapreduce.p1", "mapred1");

    clusterSpec = ClusterSpec.withTemporaryKeys();
    cluster = newCluster(1);
  }
 @Before
 public void setUp() throws Exception {
   CompositeConfiguration config = new CompositeConfiguration();
   config.addConfiguration(new PropertiesConfiguration("whirr-elasticsearch-test.properties"));
   if (System.getProperty("config") != null) {
     config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
   }
   clusterSpec = ClusterSpec.withTemporaryKeys(config);
   controller = new ClusterController();
   cluster = controller.launchCluster(clusterSpec);
 }