use of org.apache.whirr.ClusterController in project whirr by apache.
the class ScriptBasedClusterActionTest method setUp.
@Before
public void setUp() throws Exception {
clusterSpec = ClusterSpec.withTemporaryKeys();
clusterSpec.setClusterName("test-cluster-for-script-exection");
clusterSpec.setProvider("stub");
clusterSpec.setIdentity("dummy");
clusterSpec.setStateStore("none");
clusterSpec.setInstanceTemplates(ImmutableList.of(newInstanceTemplate("noop"), newInstanceTemplate("noop", "noop1", "noop2"), newInstanceTemplate("noop1", "noop3")));
ClusterController controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
}
use of org.apache.whirr.ClusterController in project whirr by apache.
the class CassandraServiceTest method setUp.
@Before
public void setUp() throws Exception {
CompositeConfiguration config = new CompositeConfiguration();
if (System.getProperty("config") != null) {
config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
}
config.addConfiguration(new PropertiesConfiguration("whirr-cassandra-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
waitForCassandra();
}
use of org.apache.whirr.ClusterController in project whirr by apache.
the class Cdh3ZooKeeperServiceTest method setUp.
@Before
public void setUp() throws Exception {
CompositeConfiguration config = new CompositeConfiguration();
if (System.getProperty("config") != null) {
config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
}
config.addConfiguration(new PropertiesConfiguration("whirr-zookeeper-cdh3-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
hosts = ZooKeeperCluster.getHosts(cluster);
}
use of org.apache.whirr.ClusterController in project whirr by apache.
the class CdhHadoopServiceTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
CompositeConfiguration config = new CompositeConfiguration();
if (System.getProperty("config") != null) {
config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
}
config.addConfiguration(new PropertiesConfiguration(getPropertiesFilename()));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
proxy = new HadoopProxy(clusterSpec, cluster);
proxy.start();
}
use of org.apache.whirr.ClusterController in project whirr by apache.
the class CdhZooKeeperServiceTest method setUp.
@Before
public void setUp() throws Exception {
CompositeConfiguration config = new CompositeConfiguration();
if (System.getProperty("config") != null) {
config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
}
config.addConfiguration(new PropertiesConfiguration("whirr-zookeeper-cdh-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
hosts = ZooKeeperCluster.getHosts(cluster);
}
Aggregations