String replicationFactor) throws Exception {
List<CfDef> cfDefList = new ArrayList<CfDef>();
KsDef ksDef = new KsDef(keyspace, locatorStrategy, cfDefList);
ksDef.putToStrategy_options("replication_factor", replicationFactor);
tr = new TFramedTransport(new TSocket(cassandraHost, cassandraPort));
proto = new TBinaryProtocol(tr);
client = new Cassandra.Client(proto);
tr.open();
client.system_add_keyspace(ksDef);