Install Hyper-Converged Database (HCD) using the binary tarball

Use this installation method to run Hyper-Converged Database (HCD) on bare metal or a virtual machine (VM). The following steps set up HCD in a compact installation in a single directory. By default, the installation stores binaries, data, and logs in the installation directory. For production deployments, you can optionally configure separate locations for data and logs. You can run the installation on Linux or Mac.

An HCD binary tarball enables:

  • Running HCD as a stand-alone process.

  • Storing binaries, data, and logs in a single directory.

  • Installing HCD with or without root permissions.

Important considerations before installation

HCD creates a default cassandra user with administrative privileges. Change or remove this default user before deploying to production to prevent unauthorized access. See Create a superuser account for instructions.

  • When you install HCD from the binary tarball, it runs as a stand-alone process.

  • This procedure installs HCD only. It doesn’t install developer-related tools, such as Cassandra drivers or Mission Control.

Prerequisites

Install HCD using a tarball

By downloading this DataStax product, you agree to the terms of the End User License Agreement (EULA).

  1. Download the tarball, and then unpack it into your desired installation directory:

    tar xvzf hcd-VERSION_NUMBER-bin.tar.gz

    Replace VERSION_NUMBER with your installation’s version number.

    HCD unpacks its files into the hcd-VERSION_NUMBER subdirectory.

  2. Start HCD from the installation directory:

    cd hcd-VERSION_NUMBER
    bin/hcd cassandra

    Replace VERSION_NUMBER with your installation’s version number.

    If HCD doesn’t start, check your Java version and make sure that the JAVA_HOME environment variable is set correctly.

  3. Optional: To store logs in a custom location, set the CASSANDRA_LOG_DIR environment variable:

    cd hcd-VERSION_NUMBER
    CASSANDRA_LOG_DIR=pwd/logs bin/hcd cassandra

    Replace VERSION_NUMBER with your installation’s version number.

Data and logging directory locations

You can use the default data and logging directory locations, or you can define your own locations.

  • Default directory locations

  • Define your own directory locations

To use the default data and logging directory locations, you must create and set ownership for the following:

  • /var/lib/cassandra

  • /var/log/cassandra

sudo mkdir -p /var/lib/cassandra; sudo chown -R $USER:$GROUP /var/lib/cassandra &&
sudo mkdir -p /var/log/cassandra; sudo chown -R $USER:$GROUP /var/log/cassandra
  1. In your HCD installation directory, create directories for data and logging:

    mkdir hcd-data &&
    cd hcd-data &&
    mkdir data &&
    mkdir commitlog &&
    mkdir saved_caches &&
    mkdir hints &&
    mkdir cdc_raw
  2. Change to your HCD installation directory, and then change to the directory containing the cassandra.yaml file:

    cd ../resources/cassandra/conf
  3. Update the following lines in the cassandra.yaml file to match your custom locations:

    data_file_directories:
      - full_path_to_installation_location/hcd-data/data
      commitlog_directory: full_path_to_installation_location/hcd-data/commitlog
      saved_caches_directory: full_path_to_installation_location/hcd-data/saved_caches
      hints_directory: full_path_to_installation_location/hcd-data/hints
      cdc_raw_directory: full_path_to_installation_location/cdc_raw

Connect to HCD

HCD runs as a stand-alone process.

To connect to HCD, you can use the CQL shell (cqlsh). For details, see Connect to HCD with cqlsh.

Next steps

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

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