Skip to content

Instantly share code, notes, and snippets.

@GLitchfield
Created April 10, 2014 15:08
Show Gist options
  • Save GLitchfield/10392160 to your computer and use it in GitHub Desktop.
Save GLitchfield/10392160 to your computer and use it in GitHub Desktop.
/**
* @param args
*/
public static void main(final String[] args) {
final CassandraStore store = new CassandraStore();
store.setSeeds("apps.aws01.us-east-1.b.cassandra.aws.barchart.com",
"apps.aws02.us-east-1.b.cassandra.aws.barchart.com");
store.setCluster("b");
store.setStrategy("NetworkTopologyStrategy");
store.setZones("us-east-1");
store.setReplicationFactor(2);
store.setCredentials("cassandra", "Erpe5PXRQmG1gVOpnvmiEwNjqCz3Qw3o");
store.connect();
final GatewayStoreProvider gateway =
new GatewayStoreProvider(store, "gateway");
try {
// store.delete("gateway");
gateway.updateSchema();
} catch (final Exception e) {
e.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment