Installing Cassandra DB on Windows

17.03.2025

Introduction:

Install Cassandra on Windows 10 in 4 Easy Steps

Prerequisites

Before installing Cassandra on Windows, make sure you have the following prerequisites:

How To: Install Apache Cassandra Using Docker (1 Min) – YouTube
Jun 28, 2022 … In this tutorial, you’ll learn how to install Apache Cassandra database using Docker. — Facebook: https://www.facebook.com/GokceDBsql …
  • Java Development Kit (JDK): Cassandra requires JDK 8 to be installed on your system. You can download it from the official Oracle website.
  • Python: Python is needed for the Cassandra scripts to run properly. Make sure you have Python installed on your machine.
  • Windows OS: Cassandra can be installed on Windows 7, 8, or 10. Make sure you have a compatible version of Windows.

Download Cassandra

Go to the official Apache Cassandra website and download the latest version of Cassandra for Windows. Choose the binary distribution that matches your system architecture (32-bit or 64-bit).

Install Cassandra

Follow these steps to install Cassandra on Windows:

  1. Extract the downloaded Cassandra zip file: Once the download is complete, extract the contents of the zip file to a location on your system.
  2. Set up environment variables: Add the bin directory of the Cassandra installation to the system PATH variable.
  3. Configure Cassandra: Navigate to the conf directory inside the Cassandra installation folder and make any necessary configuration changes in the cassandra.yaml file.
  4. Start Cassandra: Open a command prompt in the bin directory of the Cassandra installation and run the command .\cassandra to start the Cassandra service.

Verify Installation

To verify that Cassandra is installed and running correctly on Windows, follow these steps:

  1. Connect to the Cassandra shell: Open a new command prompt window and run the command cqlsh to connect to the Cassandra Query Language shell.
  2. Run a simple query: Once connected to the shell, run a simple query like SELECT * FROM system.local; to test the Cassandra installation.
  3. Check the status: You can also check the status of the Cassandra service using the command nodetool status in a separate command prompt window.

Conclusion

By following these steps, you can successfully install Cassandra on a Windows system. Make sure to configure Cassandra according to your requirements and test its functionality before using it in a production environment.

Do you like the article?

Yan Hadzhyisky

fullstack PHP+JS+REACT developer