3
I need to learn how to use Apache Cassandra. I’m following a book called Cassandra: the ultimate guide - Jeffrey Carpenter. I managed to do the installation nicely, by the looks of it, but when I execute the command :
sudo cassandra -f
get as output:
Running Cassandra as root user or group is not recommended - please start Cassandra using a different system user.
If you really want to force running Cassandra as root, use -R command line option.
then I try to start the Super User Privilege always
cassandra -f
but I get a mistake saying :
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file /var/log/cassandra/gc.log due to Permission denied
Also, I tried to create a keyspace through the CQL Shell, which apparently was created successfully, but when I run the command:
cqlsh> DESCRIBE KEYSPACE
answer:
Not in any keyspace
What am I doing wrong?
In the question the author says that the command already results in error Not in any keyspace
– Sveen
Uma vez que a instalação é bem feita, o resultado seria este: cqlsh> Describe keyspaces;

system_schema system 
system_auth system_distributed system_traces

cqlsh>
– mr.cinza
He made a syntax error, writing DESCRIBE KEYSPACE that the correct is
DESCRIBE keyspaces;
– mr.cinza
put this in the answer, which was a syntax error
– Sveen