Installing Cassandra
|
Preview | Unofficial | For review only |
Choose the install path that matches your goal. Docker is good for quick evaluation, tarballs are good for manual installs without root, and packages are the usual choice for production hosts.
Supported Platforms
Apache Cassandra runs on these Linux distributions:
-
AlmaLinux
-
Amazon Linux AMIs
-
Debian
-
RedHat Enterprise Linux (RHEL)
-
SUSE Enterprise Linux
-
Ubuntu
That list is not exhaustive. Test less common distributions before you use them in production.
Prerequisites
-
JDK 21 is recommended for Cassandra 6
-
JDK 17 is the minimum supported runtime
-
Python 3.8 to 3.11 is required for
cqlsh
Choose an Installation Method
| Method | Best For | Notes |
|---|---|---|
Docker |
Local evaluation and development |
Fastest way to get a single node running. |
Tarball |
Development, labs, and hosts without package management |
No root required. The archive unpacks into a versioned directory. |
Package |
Production installs on supported Linux distributions |
Use your platform package manager and start Cassandra as a service. |
Install with Docker
-
Pull the image:
docker pull cassandra:latest
-
Start Cassandra:
docker run --name cassandra -d -p 9042:9042 cassandra:latest
-
Connect with
cqlsh:
docker exec -it cassandra cqlsh
Install from a Tarball
-
Download the tarball for the Cassandra release you want.
-
Verify the archive if your process requires it.
-
Unpack the archive:
tar -xzf apache-cassandra-<version>-bin.tar.gz
The files unpack into apache-cassandra-<version>/.
-
Start Cassandra:
cd apache-cassandra-<version>
bin/cassandra -f