<commit_before>
// Allow GitHub image rendering
:imagesdir: ../../images

[[gi-install-cassandra-debian]]
==== Installing on Debian-based systems

This section describes how to install the latest _Cassandra 2.1.x_ release on a _Debian_ based systems for _Newts_.
The first steps add the _DataStax_ community repository and install the required _GPG Key_ to verify the integrity of the _DEB packages_.
Installation of the package is done with _apt_ and the _Cassandra_ service is added to the run level configuration.

NOTE: This description is build on _Debian 8_ and _Ubuntu 14.04 LTS_.

.Add DataStax repository
[source, bash]
----
vi /etc/apt/sources.list.d/cassandra.sources.list
----

.Content of the cassandra.sources.list file
[source, bash]
----
deb http://debian.datastax.com/community stable main
----

.Install GPG key to verify DEB packages
[source, bash]
----
wget -O - http://debian.datastax.com/debian/repo_key | apt-key add -
----

.Install latest Cassandra 2.1.x package
[source, bash]
----
dsc21=2.1.8-1 cassandra=2.1.8
----

The _Cassandra_ service is added to the run level configuration and is automatically started after installing the package.

TIP: Verify if the _Cassandra_ service is automatically started after rebooting the server.<commit_msg>HZN-325: Fix apt-get install command for Cassandra<commit_after>
// Allow GitHub image rendering
:imagesdir: ../../images

[[gi-install-cassandra-debian]]
==== Installing on Debian-based systems

This section describes how to install the latest _Cassandra 2.1.x_ release on a _Debian_ based systems for _Newts_.
The first steps add the _DataStax_ community repository and install the required _GPG Key_ to verify the integrity of the _DEB packages_.
Installation of the package is done with _apt_ and the _Cassandra_ service is added to the run level configuration.

NOTE: This description is build on _Debian 8_ and _Ubuntu 14.04 LTS_.

.Add DataStax repository
[source, bash]
----
vi /etc/apt/sources.list.d/cassandra.sources.list
----

.Content of the cassandra.sources.list file
[source, bash]
----
deb http://debian.datastax.com/community stable main
----

.Install GPG key to verify DEB packages
[source, bash]
----
wget -O - http://debian.datastax.com/debian/repo_key | apt-key add -
----

.Install latest Cassandra 2.1.x package
[source, bash]
----
apt-get update
apt-get install dsc21=2.1.8-1 cassandra=2.1.8
----

The _Cassandra_ service is added to the run level configuration and is automatically started after installing the package.

TIP: Verify if the _Cassandra_ service is automatically started after rebooting the server.
{'fraction_non_alphanumeric': 0.0946360153256705, 'fraction_numerical': 0.014942528735632184, 'mean_word_length': 3.7908256880733946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4556845', 'n_tokens_mistral': 839, 'n_tokens_neox': 770, 'n_words': 319}