I need to learn how to use Apache Cassandra. I'm following a book called Cassandra: The Definitive Guide - Jeffrey Carpenter. I was able to do the installation in a good way, it seems, but when I execute the command:
sudo cassandra -f
I get 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.
So I try to start cassandra always super user privilege
cassandra -f
But I get an error saying:
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file /var/log/cassandra/gc.log due to Permission denied
In addition, I tried to create a keyspace through CQL Shell, which apparently was created successfully, but when I execute the command:
cqlsh> DESCRIBE KEYSPACE
I get the answer:
Not in any keyspace
What am I doing wrong?