Install DataStax Enterprise (DSE) 5.1 on Debian-based systems with APT
Use these instructions to install DataStax Enterprise (DSE) 5.1 on Debian-based systems using APT. Optionally, this process can install the DataStax Agent for use with DSE OpsCenter. It doesn’t install DSE OpsCenter, DataStax Studio, or Graph Loader.
For new deployments, DataStax recommends the latest patch release. If you are scaling an existing deployment, install the same patch release as the existing nodes. For a summary of features and changes in each release, see the DSE 5.1 release notes.
When installed from a package, DSE runs as a service.
The service initialization script is located in /etc/init.d/dse.
Run levels aren’t set by the package.
|
When you install DSE, it automatically creates a |
For other installation options, see Which install method should I use?.
Prerequisites
-
Prepare an environment where you want to install DSE, including sufficient hardware, a supported platform, and root or sudo access.
-
Install APT package manager.
-
Install a supported Java runtime: OpenJDK 8 (recommended) or Oracle Java SE 8 (JDK).
If you install multiple Java versions, set your
$JAVA_HOMEenvironment variable to Java 8. -
To run the CQL shell (
cqlsh), install a supported Python version. DataStax recommends 3.8 to 3.11. Later versions aren’t supported.Use earlier versions (2.7, 3.6, or 3.7) only if required to support a legacy deployment running an early patch release of DSE 5.1 where the OS or included
cqlshbinary doesn’t support a recommended Python version. -
For production installations and simulated production test environments, review the recommended settings.
Some settings can be applied before installing DSE. For settings that require a running DSE instance, plan to apply them after the installation.
-
If you plan to use DSE OpsCenter:
-
DSE OpsCenter 6.8 is recommended for DSE 5.1.
-
If using DSE OpsCenter 6.0, override the default DataStax Agent version that is installed with this process by adding
datastax-agent-6.0.supported_version-1to your installation command. Alternatively, you can install the DataStax Agent separately or after installation with the following command:sudo apt-get install datastax-agent-6.0.supported_version-1 -
To use DSE OpsCenter Lifecycle Manager (LCM) to automatically manage the Java runtime for DSE clusters, see Manage Java installs and Choose a Java vendor in LCM.
-
Prepare the DSE DEB package
-
Find DSE 5.1 on IBM Fix Central:
-
Go to Fix Central.
-
In the Product selector field, begin typing
IBM DataStax Enterprise, and then select that option from the menu. -
In the Release field, select the version that you want to install.
-
Click Continue.
-
On the Identify fixes page, click Continue to use the default Browse for fixes option.
-
On the Select fixes page, select the fix pack (DSE version) you want to install, and then click Continue.
Depending on the product and version, more fix packs might be available if you set the Platform filter to All, and then click Submit.
-
If prompted, sign in with your IBMid.
An IBMid account with MFA enabled is required. If you don’t have one, create an IBMid account. If your organization uses Enterprise Federation (EF) for authentication with corporate credentials, see the IBMid EF documentation.
-
On the Download options page, select Download using your browser (HTTPS), and then click Continue.
-
Review the terms and conditions, and then click I agree to activate the download links.
-
-
Click the DSE DEB package link to download the file, for example,
dse-5.1.48-deb.zip. -
Extract the DEB files from the
.zipfile:unzip dse-5.1.48-deb.zipYou can use the package signing public key (
dse-deb-signing.pub.key) in the file to set up and verify the DEB packages. -
Set up a local APT repository to host the downloaded DSE Debian package.
For more information, see Setting up a Debian repository.
-
Add a DataStax repository file called
/etc/apt/sources.list.d/datastax.sources.list:echo "deb [trusted=yes] file:**REPOSITORY_DIRECTORY** ./" | sudo tee -a /etc/apt/sources.list.d/datastax.sources.listReplace
REPOSITORY_DIRECTORYwith the path to the repository directory.The
[trusted=yes]option allows APT to use the repository without GPG key verification. -
Update the packages:
sudo apt-get update
Install DSE from the DEB package
-
Install the DSE packages:
Specify all packages; otherwise, the installation fails.
-
Install the latest patch release of DSE 5.1:
sudo apt-get install dse-full -
Install an earlier patch release of DSE 5.1:
sudo apt-get install dse=version_number-1 \ dse-full=version_number-1 \ dse-libcassandra=version_number-1 \ dse-libgraph=version_number-1 \ dse-libhadoop2-client-native=version_number-1 \ dse-libhadoop2-client=version_number-1 \ dse-liblog4j=version_number-1 \ dse-libsolr=version_number-1 \ dse-libspark=version_number-1 \ dse-libtomcat=version_number-1For example:
sudo apt-get install dse=5.1.48-1 \ dse-full=5.1.48-1 \ dse-libcassandra=5.1.48-1 \ dse-libgraph=5.1.48-1 \ dse-libhadoop2-client-native=5.1.48-1 \ dse-libhadoop2-client=5.1.48-1 \ dse-liblog4j=5.1.48-1 \ dse-libsolr=5.1.48-1 \ dse-libspark=5.1.48-1 \ dse-libtomcat=5.1.48-1 -
Optional, non-production environments only: Install the demos.
Installing the DSE demos isn’t recommended for production. Only install the demos in development environments to run tutorials.
sudo apt-get install dse-demos=version_number-1
-
Start DSE
For multi-node clusters, install DSE on all nodes before starting the cluster.
For single-node installations:
-
Start DSE:
sudo service dse start -
Verify that DSE is running:
nodetool statusMake sure the status is
UN(Up/Normal):Datacenter: Cassandra ===================== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 127.0.0.1 82.43 KB 128 ? 40725dc8-7843-43ae-9c98-7c532b1f517e rack1
Next steps
DSE is ready for additional configuration:
-
Change or delete the default
cassandrauser created during installation. See Creating superuser accounts. -
See Configuration for DSE settings, including DSE Advanced Security, In-Memory, DSE Advanced Replication, DSE Multi-Instance, and DSE Tiered Storage.
-
Default file locations for package and Installer-Services installations