How to Download & Install Cassandra on Windows

โšก Smart Summary

Download and install Cassandra on Windows by unpacking the official Apache binary distribution, since the DataStax Community Edition installer shown in the legacy screenshots was retired in 2017. This page covers prerequisites, both installation routes, and startup verification.

  • โš ๏ธ Installer Status: The DataStax Community Edition MSI is no longer distributed, so the current route is the Apache binary archive.
  • โ˜• Java Requirement: A supported JDK must be installed and JAVA_HOME set before Cassandra will start.
  • ๐Ÿ cqlsh Requirement: The CQL shell is a Python script, so Python must be present to run queries from the command line.
  • ๐Ÿ“‚ Binary Install: Extracting the archive and setting CASSANDRA_HOME completes the installation; no setup wizard is involved.
  • ๐Ÿณ Container Option: A single Docker command runs a working node and avoids Windows-specific issues entirely.
  • โœ… Verification: nodetool status reporting UN, and a cqlsh prompt connecting, confirm the node is healthy.

Download and Install Cassandra on Windows

Apache Cassandra is used by smaller organizations while DataStax enterprise is used by the larger organization for storing huge amount of data.

Apache Cassandra is managed by the Apache Software Foundation.

Prerequisite for Apache Cassandra Installation

Three items must be in place before Cassandra will start on Windows.

  • Apache Cassandra binaries. You can download Cassandra from the Apache website. Take the binary tarball for the current stable release.
  • A supported JDK. Java must be installed, and the JAVA_HOME environment variable must point at the JDK folder. Cassandra 4.x runs on Java 8 or 11; Cassandra 5.x runs on Java 11 or 17.
  • Python. The cqlsh command-line client is a Python program, so a Python 3 installation is needed to open the CQL shell.

A 64-bit Windows platform is assumed throughout. Note that Windows is a lightly tested platform for Cassandra, which is why the container route described later is often the smoother option.

How to Download and Install Cassandra

Two routes exist. The screenshots in this section come from the DataStax Community Edition wizard, which is the route most existing tutorials describe. That installer is no longer published, so the current binary method is given first and the wizard is retained afterwards for readers working with an archived copy.

Method 1: Install from the Apache binary archive (current method)

Step 1) Download the binary tarball, for example apache-cassandra-x.y.z-bin.tar.gz, from the Apache download page linked above. Verify the file against the published checksum on the same page.

Step 2) Extract the archive to a path without spaces, such as C:\cassandra. Spaces in the path cause the startup scripts to fail.

Step 3) Create the two environment variables Cassandra expects, then add the bin folder to PATH.

setx CASSANDRA_HOME "C:\cassandra"
setx JAVA_HOME "C:\Program Files\Java\jdk-17"
setx PATH "%PATH%;C:\cassandra\bin"

Step 4) Open a new command prompt so the variables take effect, then start the node in the foreground.

cd C:\cassandra\bin
cassandra -f

Leave that window open. The startup log ends with a line stating that the node is listening for CQL clients on port 9042.

Step 5) In a second command prompt, confirm the node is up and then open the shell.

nodetool status
cqlsh 127.0.0.1 9042

A status line beginning with UN means the node is Up and Normal. The cqlsh prompt confirms the installation is complete.

Method 2: DataStax Community Edition wizard (legacy)

The screenshots below document the retired MSI installer. They remain useful for readers who already hold a copy, and the resulting shell behaves identically.

Step 1) Run the DataStax community edition setup. After running the Setup, following page will be displayed. Here in the screenshot 64 bit version is being installed. You can download 32 bit version as well according to your requirements. But the 64 bit version is recommended.

Download and Install Cassandra

This page gives you information about the Cassandra version you are going to install. Press the ‘next’ button.

Step 2) Press the ‘next’ button. After pressing the ‘next’ button, following page will be displayed.

Download and Install Cassandra

This page is about the license agreement. Mark the checkbox and press the next button.

Step 3) Press the ‘next’ button. The following page will be displayed asks about the installation location.

  1. Default location is C:\Program Files. You can change installation location if you want to change. It is recommended not to change installation location.
  2. After setting installation location, press the ‘next’ button

Download and Install Cassandra

Step 4) Start Cassandra and OpsCenter. After pressing ‘next’ button in above step, the following page will be displayed. This page asks about whether you want to automatically start Cassandra and OpsCenter.

  1. Mark the checkboxes if you want to automatically start Cassandra and OpsCenter.
  2. After providing this information, press the ‘next’ button.

Download and Install Cassandra

Step 5) Click on install button. Setup has collected all the necessary information and now the setup is ready to install. Press install button.

Download and Install Cassandra

Step 6) Click on Next. After pressing ‘install’ button, following page will be displayed.

Download and Install Cassandra

DataStax community edition is being installed. After installation is completed, click on next button. When setup is installed successfully, press the ‘Finish’ button.

Download and Install Cassandra

Go to windows start programs, search Cassandra CQL Shell and run the Cassandra Shell. After running Cassandra shell, you will see the following command line

Download and Install Cassandra

Now you can create a keyspace, tables, and write queries.

Running Cassandra in Docker on Windows

Both methods above run Cassandra directly on Windows, which is the least tested platform for the project. A container avoids the Java path, service registration, and file permission problems that cause most Windows installation failures, and it removes the node cleanly afterwards.

With Docker Desktop installed, one command starts a working single node.

docker run --name cassandra-node -p 9042:9042 -d cassandra:latest

Give the node about a minute to bootstrap, then check its state and open the shell inside the container.

docker exec -it cassandra-node nodetool status
docker exec -it cassandra-node cqlsh

Data written this way lives inside the container and disappears when the container is removed. To keep it, attach a volume to the data directory:

docker run --name cassandra-node -p 9042:9042 \
  -v cassandra-data:/var/lib/cassandra -d cassandra:latest

This route is the practical choice for learning and local development, because a broken node is discarded and recreated in seconds.

Troubleshooting a Cassandra Installation on Windows

Startup failures on Windows fall into a small number of recurring causes. Each produces a distinctive message in the console.

Symptom Cause and fix
“JAVA_HOME is not set” The variable is missing or points at a JRE rather than a JDK. Set it to the JDK folder and open a new command prompt.
Process exits immediately with no log The install path contains a space. Move the folder to a path such as C:\cassandra.
“Unable to gossip with any peers” An earlier failed start left stale data. Stop the node and clear the data and commitlog folders under the installation directory.
“Address already in use” Port 9042 or 7000 is taken by another process, often a previous Cassandra run. Close it or change the ports in cassandra.yaml.
cqlsh reports “no module named cqlshlib” Python is missing or the wrong version is first on PATH. Install Python 3 and confirm with python –version.

Once the node reports UN and cqlsh connects, the next step is creating storage structures, covered in the Cassandra keyspace tutorial, followed by the Cassandra table tutorial.

FAQs

No. DataStax stopped publishing Community Edition after 2017, and the Windows MSI is no longer downloadable. Use the Apache binary archive or a container image instead.

Cassandra 4.x supports Java 8 and 11. Cassandra 5.x supports Java 11 and 17. A JDK is required rather than a JRE, and JAVA_HOME must point at it.

The bundled cassandra.bat accepts an install flag to register a service, but this path receives little testing. For anything beyond experimentation, run Cassandra on Linux or in a container.

Pasting the system.log stack trace into an AI assistant usually identifies the cause quickly, because startup errors are well documented. Verify the suggested fix against cassandra.yaml before applying it.

Treat them as a starting point. Heap sizing, concurrent reads, and compaction throughput depend on the actual hardware, so every generated value should be tested on the target machine.

Summarize this post with: