Directory bin/../data/data doesn't exist - Has no permission to create directory bin/../data/data
-
Full Errors:
WARN [main] 2018-12-18 07:02:06,862 StartupChecks.java:332 - Directory bin/../data/data doesn't exist ERROR [main] 2018-12-18 07:02:06,862 CassandraDaemon.java:708 - Has no permission to create directory bin/../data/data
If you install on Ubuntu using the repositories you will not see this, however if you install using the tar binaries you will see these errors.
Reading the cassandra.yaml configuration file, there is a section on the data directory.
# Directories where Cassandra should store data on disk. Cassandra # will spread data evenly across them, subject to the granularity of # the configured compaction strategy. # If not set, the default directory is $CASSANDRA_HOME/data/data. # data_file_directories: # - /var/lib/cassandra/data
If you are starting Cassandra from the untar-ed directory, it expects the data directory under there.
There are other directories like:
commitlog data hints saved_caches
It expects under the data directory and also check ownership and group permissions. It is recommend that the cassandra daemon run as a separate user from root, creating a cassandra user and group is best practice, the cassandra user account does not need a shell.
© Lightnetics 2024