Created
April 10, 2014 15:08
-
-
Save GLitchfield/10392160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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