Darwin
Darwin

Reputation: 2037

Bad Request: line 1:0 no viable alternative at input 'clear'

I installed cassandra and run 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.

and enter clear command on cqlsh. But i got this

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>

Upvotes: 0

Views: 29

Answers (1)

Alex Ott
Alex Ott

Reputation: 87154

the clear command was added in Cassandra 2.2.1 (commit) and you're using very old 2.0.10. If you just learning Cassandra, start with Cassandra 4.x, not use the version that was released 8 years ago...

Upvotes: 1

Related Questions