Cassandra DSE Service on Linux with non-default Installation Location - linux

How can I install Cassandra DataStax Enterprise on RHEL6 in a non-default location and still have it run as a service?

Try using --installroot with yum:
--installroot=root
Specifies an alternative installroot, relative to which all packages will be installed.

Related

How to install cassandra on Windows 10?

I am trying to get and install Cassandra on Windows 10(x64). Not able to download any Datastax enterprise edition for Windows. Can anyone suggest the steps to do download ,install it and configure on Windows 10.
I have been using the following
Install virtual Machine
Download Latest Centos and Install it on Virtual Machine
Install Cygwin on windows ( you can use different software as well ) to access Cassandra on Windows
Follow Bitnami Steps on how to install Dockers and download Cassandra Image on your Virtual Machine
(https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7)
you may choose other Cassandra Image aswell but i personally prefer Bitnami
To be able to install Cassandra on Windows, first you need to:
Download and Install Java 8 and set environment variables.
Download and install Python 2.7 and set environment variables.
Then Visit the official Apache Cassandra Download page and select the version you would prefer to download and Set Up Apache Cassandra
Here's a link to full explanation https://phoenixnap.com/kb/install-cassandra-on-windows

sstabledump not found on Cassandra 3.11 ubuntu 16.04

I have installed Cassandra 311 on ubuntu 1604. Everything works fine but I am not able to find SSTABLEDUMP utility in the bin folder.
How can I get this installed as patch? Or I am missing something?
Thanks.
Depending on which version you have installed:
DataStax Enterprise 5.0 Installer No-Services and tarball installations:
install_location/resources/cassandra/tools/bin
Cassandra tarball installations:
install_location/tools/bin/
For package installations (Cassandra package or DataStax Enterprise 5.0 Installer Services and package installations) you do not need to know the installation folder to run it, you can just simply use it as:
sstabledump [options] sstable_file
https://docs.datastax.com/en/cassandra/3.0/cassandra/tools/ToolsSSTabledump.html
Also to have the tools, you need to install cassandra-tools separately apart from cassandra:
sudo apt-get install cassandra-tools

How to install Apache Cassandra on CentOS 7?

Cassandra installation documentation mentions installation from a tarball or as a Debian package. Is there a way to install it using yum, now that DataStax does not provides the distribution?
CentOS uses RPM as package format as far as I can remember. So look on http://cassandra.apache.org/download/:
Installation from RPM packages
For the specify the major version number, without dot, and with an appended x. The latest is 311x. For older releases, the can be one of 30x, 22x, or 21x.
(Not all versions of Apache Cassandra are available, since building RPMs is a recent addition to the project.)
Add the Apache repository of Cassandra to /etc/yum.repos.d/cassandra.repo, for example for the latest 3.11 version:
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
Install Cassandra, accepting the gpg key import prompts:
sudo yum install cassandra
Start Cassandra (will not start automatically):
service cassandra start
Systemd based distributions may require to run systemctl daemon-reload once to make Cassandra available as a systemd service. This should happen automatically by running the command above.
Make Cassandra start automatically after reboot:
chkconfig cassandra on
Please note that official RPMs for Apache Cassandra only have been available recently and are not tested thoroughly on all platforms yet. We appreciate your feedback and support and ask you to post details on any issues in the corresponding Jira ticket.

How to install Datastax DevCenter without Cassandra database

I have downloaded and installed Cassandra according to this guide: http://cassandra.apache.org/download/
Now I'd like to install Datastax DevCenter, but the problem is that I cannot find a standalone Datastax DevCenter download and / or instructions how to download and install only the Datastax DevCenter without installing and setting up yet another Cassandra node.
DeveCenter installation guide: http://docs.datastax.com/en/developer/devcenter/doc/devcenter/dcInstallation.html
According to the video the install will setup Cassandra node and optionally install DevCenter and other tools.
It is also said that the APT package installer does not install DevCenter:
http://docs.datastax.com/en/datastax_enterprise/5.0/datastax_enterprise/install/installDEBdse.html
I have Ubuntu 16.04
Sorry to answer my own question, but I found the link where to download all datastax tools:
https://academy.datastax.com/downloads/ops-center?destination=downloads/ops-center&dxt=DXcom

Missing JAR manifest after running DataStax Enterprise 4.7

I tried installing it 2 times and still got the same error.
I followed the instructions here. http://docs.datastax.com/en/datastax_enterprise/4.7/datastax_enterprise/install/installDEBdse.html
root#node1:~$ Error opening zip file or JAR manifest missing : /usr/sbin/../lib/jamm-0.3.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
TL;DR: Somehow you need to get ./resources/cassandra/lib/jamm-0.3.0.jar in your your DSE installation directory and remove any older versions.
DSE 4.7 uses Cassandra 2.1.8 under the hood. C* 2.1 uses jamm 3.0. Older versions of cassandra, 2.0 and previous used jamm 2.5. If you had a previous install of either an older c* or an older DSE on this environment, some of your old dependencies may be stuck.
If you're on Debian using the package installer try running:
sudo aptitude install dse-full=version
Which should pick up the right dependencies.
If not, apt-get purge dse-full and then re-installing might also work.
There are similar commands for yum in RHEL.

Resources