Creating custom data directories

About this task

To ensure that Lifecycle Manager (LCM) does not delete or overwrite data, it will not automatically create data directories in non-default locations, or manage their permissions. Complete the following steps to use a custom data directory.

The following commands use the useradd and groupadd commands. These examples are not comprehensive for all environments, but instead provide an illustrative example. Use whichever common utility is employed by your organization to complete these steps.

Procedure

  1. Create the cassandra user and group:

    groupadd -r cassandra
    useradd -r -g cassandra cassandra
  2. Create the custom data directory and assign ownership and permissions to the cassandra user:

    mkdir /opt/my-custom-dir
    chown cassandra:cassandra /opt/my-custom-dir
    chmod 750 /opt/my-custom-dir
  3. If additional custom directories are required, repeat the previous step to create the directories and assign proper ownership and permission.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com