DeploymentOptionsFactory factory = new DeploymentOptionsFactory();
DeploymentOptions deploymentOptions = factory.newDeploymentOptions();
deploymentOptions.setClusterDir(clusterDir.getAbsolutePath());
deploymentOptions.setNumNodes(numNodes);
CassandraClusterManager ccm = new CassandraClusterManager(deploymentOptions);
long start = System.currentTimeMillis();
getLog().info("Creating " + numNodes + " cluster in " + clusterDir);
ccm.createCluster();
getLog().info("Starting cluster nodes");
ccm.startCluster();
getLog().info("Installing RHQ schema");
SchemaManager schemaManager = new SchemaManager(deploymentOptions.getUsername(),
deploymentOptions.getPassword(), ccm.getNodes(), ccm.getCqlPort());
try {
schemaManager.install();
schemaManager.updateTopology();
} catch (Exception e) {