Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix schema creation

  • Loading branch information...
commit f7f54e7b2d9d8543b374f0ec874abf3effbcadd9 1 parent e64a2fc
@benmccann benmccann authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/lucandra/CassandraUtils.java
View
9 src/lucandra/CassandraUtils.java
@@ -388,8 +388,13 @@ public static void createCassandraSchema() throws IOException
cfs.add(cf);
- KsDef solandraKS = new KsDef().setName(keySpace).setReplication_factor(1).setStrategy_class(
- "org.apache.cassandra.locator.SimpleStrategy").setCf_defs(cfs);
+ Map<String, String> strategyOptions = new HashMap<String, String>();
+ 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();
Please sign in to comment.
Something went wrong with that request. Please try again.