use of org.apache.commons.configuration.CompositeConfiguration in project whirr by apache.
the class HBaseOldServiceController method startup.
public synchronized void startup() throws Exception {
LOG.info("Starting up cluster...");
CompositeConfiguration config = new CompositeConfiguration();
if (System.getProperty("config") != null) {
config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
}
config.addConfiguration(new PropertiesConfiguration(this.configResource));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
cluster = controller.launchCluster(clusterSpec);
proxy = new HadoopProxy(clusterSpec, cluster);
proxy.start();
waitForMaster();
running = true;
}
use of org.apache.commons.configuration.CompositeConfiguration in project whirr by apache.
the class MahoutServiceTest 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("whirr-mahout-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
controller.launchCluster(clusterSpec);
}
use of org.apache.commons.configuration.CompositeConfiguration in project whirr by apache.
the class ClusterSpec method composeWithDefaults.
private Configuration composeWithDefaults(Configuration userConfig) throws ConfigurationException {
CompositeConfiguration composed = new CompositeConfiguration();
composed.addConfiguration(userConfig);
composed.addConfiguration(new PropertiesConfiguration(getClass().getClassLoader().getResource(DEFAULT_PROPERTIES)));
return composed;
}
use of org.apache.commons.configuration.CompositeConfiguration in project whirr by apache.
the class PigServiceTest 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("whirr-pig-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterController();
controller.launchCluster(clusterSpec);
}
use of org.apache.commons.configuration.CompositeConfiguration in project whirr by apache.
the class ZooKeeperServiceTest 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-test.properties"));
clusterSpec = ClusterSpec.withTemporaryKeys(config);
controller = new ClusterControllerFactory().create(clusterSpec.getServiceName());
cluster = controller.launchCluster(clusterSpec);
hosts = ZooKeeperCluster.getHosts(cluster);
}
Aggregations