Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Commit

Permalink
Fix schema creation
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 31, 2012
1 parent e64a2fc commit f7f54e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lucandra/CassandraUtils.java
Expand Up @@ -388,8 +388,13 @@ public static void createCassandraSchema() throws IOException


cfs.add(cf); cfs.add(cf);


KsDef solandraKS = new KsDef().setName(keySpace).setReplication_factor(1).setStrategy_class( Map<String, String> strategyOptions = new HashMap<String, String>();
"org.apache.cassandra.locator.SimpleStrategy").setCf_defs(cfs); strategyOptions.put("replication_factor", "1");
KsDef solandraKS = new KsDef()
.setName(keySpace)
.setStrategy_class("org.apache.cassandra.locator.SimpleStrategy")
.setStrategy_options(strategyOptions)
.setCf_defs(cfs);


CassandraServer cs = new CassandraServer(); CassandraServer cs = new CassandraServer();


Expand Down

0 comments on commit f7f54e7

Please sign in to comment.