Understand the default configuration
The grant tables define the initial Cassandra user accounts and their access privileges. The default configuration consists of one privileged account with a username of cassandra. It has the following privileges:
- Has all privileges including remote access to the database.
- Can create new users and assign them different roles.
To check the list of users and their privileges, execute the following command in the database:
cassandra@cqlsh> LIST USERS;
name | super
-----------+-------
cassandra | True
Cassandra version
In order to see which Cassandra version your system is running, execute the following command:
cqlsh --version
Cassandra configuration file
The Cassandra configuration file is located at /opt/bitnami/cassandra/conf/cassandra.yaml.
The Cassandra official documentation has more details about how to configure the Cassandra database.
Cassandra ports
The default ports for Cassandra are:
- Client port: 9042.
- Transport port: 7000.
- JMX port: 7199.
Cassandra Process Identification Number
The Cassandra .pid file allows other programs to find out the PID (Process Identification Number) of a running script. Find it at /opt/bitnami/cassandra/tmp/cassandra.pid.
Cassandra log file
The Cassandra .log file contains a record with all the events that occur while the database is running in the server. Find it at /opt/bitnami/cassandra/logs/cassandra.log.
Cassandra debug log file
The Cassandra debug.log file contains status and error messages useful for debugging the server. Find it at /opt/bitnami/cassandra/logs/debug.log.