【问题标题】:Bad Request: line 1:0 no viable alternative at input 'clear'错误请求:第 1:0 行在输入 \'clear\' 处没有可行的替代方案
【发布时间】:2022-08-09 17:54:49
【问题描述】:

我安装了 cassandra 并运行 cqlsh:

Connected to Test Cluster at localhost:9160.
[cqlsh 4.1.1 | Cassandra 2.0.10 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.

并在 cqlsh 上输入 clear 命令。但我得到了这个

cqlsh> clear;
Bad Request: line 1:0 no viable alternative at input \'clear\'
cqlsh> clear
   ... ;
Bad Request: line 1:0 no viable alternative at input \'clear\'
cqlsh>

    标签: cassandra cassandra-2.0 cqlsh


    【解决方案1】:

    在 Cassandra 2.2.1 (commit) 中添加了 clear 命令,而您使用的是非常旧的 2.0.10。如果你只是学习 Cassandra,从 Cassandra 4.x 开始,不要使用 8 年前发布的版本...

    【讨论】:

    • 谢谢,windows有下载链接吗?
    • Cassandra 4.0 删除了对 Windows 的原生支持 - 使用 Docker 代替在 Windows 上运行。或者使用最新的 3.x 版本
    猜你喜欢
    • 2021-06-06
    • 2013-01-23
    • 2019-05-21
    • 2016-01-14
    • 1970-01-01
    • 1970-01-01
    • 2019-10-01
    • 2014-10-01
    • 1970-01-01
    相关资源
    最近更新 更多