Install Cassandra 3.11 On Windows

These are the instructions for deploying the supported releases of Apache Cassandra on Linux servers.

In this video we will learn how to install Cassandra on windows.Most of the tutorial in this series will assume you are running on Linux but Cassandra can al. Apache Cassandra » 3.11.6. The Apache Cassandra Project develops a highly scalable second-generation distributed database, bringing together Dynamo's fully distributed design and Bigtable's ColumnFamily-based data model. Hadoop Databases. Choose a tag to compare. Search for a tag. Mshuler tagged this on Feb 11, 2019 3242 commits to trunk since this tag. Apache Cassandra 3.11.4 release.

Cassandra runs on a wide array of Linux distributions including (but not limited to):

Download the latest software from DataStax, including DataStax Enterprise, the distributed hybrid cloud database built on Apache Cassandra™, unified drivers, open source tools and sneak-preview items exclusively available in DataStax Labs. I have installed latest version of Apache Cassandra 3.11.9 for Windows, My python env variable is already set for python3 (Python 3.8), as I actively use python 3.8. I was continuously getting error, then I installed python2 inside 'Apache Cassandra 3.11.9bin'. I need not to reset my env variable to python2.

  • Ubuntu, most notably LTS releases 16.04 to 18.04
  • CentOS & RedHat Enterprise Linux (RHEL) including 6.6 to 7.7
  • Amazon Linux AMIs including 2016.09 through to Linux 2
  • Debian versions 8 & 9
  • SUSE Enterprise Linux 12

This is not an exhaustive list of operating system platforms, nor is it prescriptive. However users will bewell-advised to conduct exhaustive tests of their own particularly for less-popular distributions of Linux.Deploying on older versions is not recommended unless you have previous experience with the older distributionin a production environment.

Prerequisites¶

  • Install the latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8. Toverify that you have the correct version of java installed, type java-version.
  • NOTE: Experimental support for Java 11 was added in Cassandra 4.0 (CASSANDRA-9608).Running Cassandra on Java 11 is experimental. Do so at your own risk. For more information, seeNEWS.txt.
  • For using cqlsh, the latest version of Python 3.6+ or Python 2.7 (support deprecated). To verify that you havethe correct version of Python installed, type python--version.

Choosing an installation method¶

For most users, installing the binary tarball is the simplest choice. The tarball unpacks all its contentsinto a single location with binaries and configuration files located in their own subdirectories. The mostobvious attribute of the tarball installation is it does not require root permissions and can beinstalled on any Linux distribution.

Packaged installations require root permissions. Install the RPM build on CentOS and RHEL-baseddistributions if you want to install Cassandra using YUM. Install the Debian build on Ubuntu and otherDebian-based distributions if you want to install Cassandra using APT. Note that both the YUM and APTmethods required root permissions and will install the binaries and configuration files as thecassandra OS user.

Installing the binary tarball¶

  1. Verify the version of Java installed. For example:
  1. Download the binary tarball from one of the mirrors on the Apache Cassandra Downloadsite. For example, to download 4.0:

NOTE: The mirrors only host the latest versions of each major supported release. To download an earlierversion of Cassandra, visit the Apache Archives.

  1. OPTIONAL: Verify the integrity of the downloaded tarball using one of the methods here.For example, to verify the hash of the downloaded file using GPG:

Compare the signature with the SHA256 file from the Downloads site:

  1. Unpack the tarball:

The files will be extracted to the apache-cassandra-4.0-beta1/ directory. This is the tarball installationlocation.

  1. Located in the tarball installation location are the directories for the scripts, binaries, utilities, configuration, data and log files:

For information on how to configure your installation, seeConfiguring Cassandra.

  1. Start Cassandra:

NOTE: This will run Cassandra as the authenticated Linux user.

You can monitor the progress of the startup with:

Cassandra is ready when you see an entry like this in the system.log:

  1. Check the status of Cassandra:

The status column in the output should report UN which stands for “Up/Normal”.

Alternatively, connect to the database with:

Installing the Debian packages¶

  1. Verify the version of Java installed. For example:
  1. Add the Apache repository of Cassandra to the file cassandra.sources.list. The latest major versionis 4.0 and the corresponding distribution name is 40x (with an “x” as the suffix).For older releases use 311x for C* 3.11 series, 30x for 3.0, 22x for 2.2 and 21x for 2.1.For example, to add the repository for version 4.0 (40x):
  1. Add the Apache Cassandra repository keys to the list of trusted keys on the server:
  1. Update the package index from sources:
  1. Install Cassandra with APT:

NOTE: A new Linux user cassandra will get created as part of the installation. The Cassandra servicewill also be run as this user.

  1. The Cassandra service gets started automatically after installation. Monitor the progress ofthe startup with:

Cassandra is ready when you see an entry like this in the system.log:

NOTE: For information on how to configure your installation, seeConfiguring Cassandra.

  1. Check the status of Cassandra:

The status column in the output should report UN which stands for “Up/Normal”.

Alternatively, connect to the database with:

Installing the RPM packages¶

  1. Verify the version of Java installed. For example:
  1. Add the Apache repository of Cassandra to the file /etc/yum.repos.d/cassandra.repo (as the rootuser). The latest major version is 4.0 and the corresponding distribution name is 40x (with an “x” as the suffix).For older releases use 311x for C* 3.11 series, 30x for 3.0, 22x for 2.2 and 21x for 2.1.For example, to add the repository for version 4.0 (40x):
  1. Update the package index from sources:
  1. Install Cassandra with YUM:

NOTE: A new Linux user cassandra will get created as part of the installation. The Cassandra servicewill also be run as this user.

  1. Start the Cassandra service:
  1. Monitor the progress of the startup with:

Cassandra is ready when you see an entry like this in the system.log:

NOTE: For information on how to configure your installation, seeConfiguring Cassandra.

  1. Check the status of Cassandra:

The status column in the output should report UN which stands for “Up/Normal”.

Alternatively, connect to the database with:

Further installation info¶

Install cassandra windows 10

For help with installation issues, see the Troubleshooting section.

Install using Yum repositories on RHEL, CentOS, and Oracle Linux.

The latest version of Apache Cassandra 3.x is 3.11.5.

Use these steps to install Apache Cassandra using Yum repositories on RHEL, CentOS, and Oracle Linux.

Note: To install on SUSE, use the Cassandra binary tarball distribution.
  • Yum Package Management application installed.
  • Root or sudo access to the install machine.
  • DataStax recommends using the latest version of either OpenJDK 8 or Oracle Java Platform, Standard Edition 8 (JDK).
  • Python 2.7 if using cqlsh.

Install Cassandra 3.11 On Windows 10

The packaged releases create a cassandra user. When starting Cassandra as a service, the service runs as this user.

Procedure

Install Cassandra 3.11 On Windows 8

  1. Check which version of Java is installed by running the following command:
    DataStax recommends using the latest version of Java 8 on all nodes. See Installing the JDK and Python 2.7.
  2. Add the Apache Cassandra repository to the /etc/yum.repos.d/cassandra.repo:
  3. Install the packages:
    Note:Apache Cassandra only provides the latest patch version. If you need to install an earlier patch version, contact DataStax Support.
    Cassandra is ready for configuration.
  4. Optional: To change the location of the default directories (/var/lib/cassandra), see the following in /etc/cassandra/conf/cassandra.yaml:
  5. Optional: To change the location of the log files (/var/log/cassandra), replace the path to the log directory in /usr/sbin/cassandra:

Install Cassandra Windows 10

What's next