KieranBroadfoot / horae

Enterprise aware service scheduling
0 stars 0 forks source link

replication keyword choke on cassandra - cassandra version requirement? #4

Open ianmiell opened 9 years ago

ianmiell commented 9 years ago

Just trying to get this going locally - I came across this problem with the replication keyword.

root@osboxes:/# cassandra-cli -h localhost -f /tmp/a.cql 
Connected to: "Test Cluster" on localhost/9160
Line 1 => java.lang.IllegalArgumentException: No enum constant org.apache.cassandra.cli.CliClient.AddKeyspaceArgument.REPLICATION
root@osboxes:/# cat > /tmp/b.cql
create keyspace horae_default
;
root@osboxes:/# cassandra-cli -h localhost -f /tmp/b.cql 
Connected to: "Test Cluster" on localhost/9160
e01fe0f3-823c-3076-b1a7-61acd16c2b8e
root@osboxes:/# 

I've never used cassandra before - is the version significant here?

Commands:

docker run --net=host -d coreos/etcd
docker run --net=host -d cassandra
./horae

before running in the cql by hand.

KieranBroadfoot commented 9 years ago

I believe there are format differences between cassandra-cli and cqlsh. I used cqlsh so worth giving that a try.