gpt4 book ai didi

cassandra - cqlsh 入门给出了无效的语法

转载 作者:行者123 更新时间:2023-12-01 23:56:08 24 4
gpt4 key购买 nike

我正在关注 http://wiki.apache.org/cassandra/GettingStarted

我做的第一件事cqlsh

cqlsh> CREATE KEYSPACE mykeyspace WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor' : 1 };
Invalid syntax at line 1, char 47
CREATE KEYSPACE mykeyspace WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor' : 1 };
^
cqlsh>

我究竟做错了什么?
cqlsh> SHOW VERSION;
[cqlsh 2.2.0 | Cassandra 1.1.12 | CQL spec 2.0.0 | Thrift protocol 19.33.0]
cqlsh>

最佳答案

使用下面的东西它会起作用。

CREATE SCHEMA mykeyspace WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };

关于cassandra - cqlsh 入门给出了无效的语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23609825/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com