0
我想在Cassandra 2.0.4中使用cql python庫。我得到的錯誤如下:cql python庫是否支持Cassandra v2?
drop table if exists mytable
Bad Request: line 1:14 mismatched input 'exists' expecting EOF
create table mytable (... rowNum bigint, primary key (rowNum))
Bad Request: line 1:159 extraneous input ')' expecting EOF
create table mytable (timestamp timestamp, ...)
Bad Request: line 1:94 no viable alternative at input 'timestamp'
是不是應該與Cassandra 2.0.4一起使用cql庫?我通過使用cassandra庫開始工作,該庫適用於這些情況,但BATCH命令在該接口中似乎不受支持,而在cql中。
這是我很難告訴我應該用2版本使用其中許多蟒蛇卡桑德拉接口...
謝謝!
韋恩