Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra shows three dots when i run any query

Tags:

cassandra

it is the first time i use cassandra, so please excuse me if my question is naive :)
I have downloaded and extracted cassandra 1.2.4
i have run it using /usr/local/apache-cassandra-1.2.4/bin/cassandra -f now i connect to it

root@Alaa:/usr/local/apache-cassandra-1.2.4# ./bin/cassandra-cli
Connected to: "Test Cluster" on 127.0.0.1/9160
Welcome to Cassandra CLI version 1.2.4

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown] show cluster name
... 

and those three dots remain forever!! any idea what is wrong?

like image 387
Alaa Avatar asked Apr 28 '13 03:04

Alaa


People also ask

What is Cassandra allow filtering?

Cassandra will request ALLOW FILTERING as it will have to first find and load the rows containing Jonathan as author, and then to filter out the ones which do not have a time2 column equal to the specified value. Adding an index on time2 might improve the query performance.

How does Cassandra query work?

Cassandra distributes the partition accross the nodes using the selected partitioner. As only the ByteOrderedPartitioner keeps an ordered distribution of data Cassandra does not support >, >=, <= and < operator directly on the partition key.


1 Answers

You need to terminate the command with a ;, otherwise the shell has no way of telling that you're "done" entering a query/command:

show cluster name;
                 ^---

That's why the help;, quit;, and exit; examples printed as part of the startup all include a ;...

like image 131
Marc B Avatar answered Sep 19 '22 16:09

Marc B