Stopping a DataStax Enterprise node 

Stopping DataStax Enterprise and the DataStax Agent on a node.

To speed up the restart process, before stopping the dse service, run nodetool drain. This step writes the current memtables to disk. When you restart the node, Cassandra does not need to read through the commit log. If you have durable writes set to false, which is unlikely, there is no commit log and you must drain the node to prevent losing data.

To stop the DataStax Enterprise and DataStax Agent services on a node:
$ nodetool drain -h host name
$ sudo service dse stop
$ sudo service datastax-agent stop

To stop the stand-alone process and DataStax Agent on a node:

Running nodetool drain before using the cassandra-stop command to stop a stand-alone process is not necessary because the cassandra-stop command drains the node before stopping it.

From the installation location:
$ install_location/bin/dse cassandra-stop ## Use sudo if needed
In the unlikely event that the cassandra-stop command fails because it cannot find the process DataStax Enterprise Java process ID (PID), the output instructs you to find the DataStax Enterprise Java process ID (PID) manually, and stop the process using its PID number.
$ ps auwx | grep dse
$ bin/dse cassandra-stop -p PID ## Use sudo if needed
To stop the DataStax Agent:
$ ps auwx | grep datastax-agent
$ kill datastax_agent_pid ## Use sudo if needed