Uninstalling DataStax Enterprise 5.1
Select the uninstall method for your type of installation.
Uninstalling Debian- and RHEL-based packages
-
Stop the DataStax Enterprise service:
$ nodetool drain
$ sudo service dse stop
-
Make sure all services are stopped:
$ ps auwx | grep dse
-
If services are still running, use the PID to kill the service:
$ bin/dse cassandra-stop -p dse_pid
-
Remove the installation directories:
RHEL-based packages:
$ sudo yum remove "dse-*" "datastax-*"
Debian-based packages:
$ sudo apt-get purge "dse-*" "datastax-*"
Uninstalling the binary tarball
Use this method when you have installed DataStax Enterprise using the binary tarball.
-
Stop the node:
$ bin/dse cassandra-stop ## Use sudo if needed
-
Make sure all services are stopped:
$ ps auwx | grep dse
-
If services are still running, use the PID to kill the service:
$ bin/dse cassandra-stop -p dse_pid
-
Remove the installation directory.
$ rm -r installation_directory
Uninstalling from the DataStax Installer (deprecated)
The DataStax Installer is no longer supported. |
Use this method when you have installed DataStax Enterprise from the DataStax Installer.
-
Go to the server installation directory:
-
If installed on Linux with root permissions:
$ /usr/share/dse
-
If installed on Linux without root permissions:
$ <installation_location>/dse
-
If installed on Mac OS X
$ <installation_location>/dse
-
-
Launch the uninstaller:
-
Linux:
$ ./uninstall ## Run the uninstaller as root or sudo if needed
-
Mac OS X: Double-click uninstaller.
-
-
Select the type of uninstall and follow the instructions on the uninstaller.
If you are going to reinstall DataStax Enterprise with the existing data files, be sure to
drain
the node and move the files somewhere else before uninstalling.
Using the Unattended Uninstaller (deprecated)
The DataStax Installer is no longer supported. |
To use this method, you must have installed DataStax Enterprise from the DataStax Installer.
-
Create a configuration file called
uninstall.property
in the same directory as the uninstaller. For example:/usr/share/dse/uninstall.property
-
In the
uninstall.property
file, set the required properties:-
do_drain=1|0
- drains the node before uninstalling -
full_uninstall=1|0
- uninstalls all components where1=yes
and0=no
.
-
-
From the directory containing the uninstaller:
$ sudo ./uninstall --mode unattended