【发布时间】:2013-03-11 00:48:01
【问题描述】:
我正在使用cassandra-cli -h localhost 创建键空间。
我试过这个命令:create keyspace reddit with strategy_options = [{replication_factor:1}]; 和这个:create keyspace reddit with strategy_options = {replication_factor:1};,但我得到的只是这个:
org.apache.thrift.transport.TTransportException
我在 ArchLinux(由 AUR 构建)上尝试了 Cassandra 1.1.6 和 1.2.2。 (我正在使用 systemctl start cassandra 运行 Cassandra)。
另外,当我尝试use reddit; 在创建键空间之前返回Keyspace 'reddit' not found.,但在尝试创建键空间后它返回Login failure. Did you specify 'keyspace', 'username' and 'password'?。
编辑:忘了提,但是create keyspace test; 工作得很好,但是当我使用replication_factor 创建键空间时,它会抛出异常。
【问题讨论】: