EOF希望創建密鑰空間和使用CQL但得到的錯誤不匹配輸入「)」在CQL
CREATE KEYSPACE demodb
WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy'
... AND strategy_options:replication_factor='1';
cqlsh:demodb> CREATE TABLE users (
... user_name varchar,
... password varchar,
... gender varchar,
... session_token varchar,
... state varchar,
... birth_year bigint,
... PRIMARY KEY (user_name)
... );
Bad Request: line 1:163 mismatched input ')' expecting EOF
爲什麼會出現這個錯誤,任何幫助,謝謝。
它適用於我在1.2.10上。你有哪個Cassandra版本? – Richard
安裝dsc = 1.0.10 cassandra = 1.0.10在ubuntu-13.04中 – user2801682