Stop, start, and restart a DataStax Agent
The following commands are used to stop, start and restart a DataStax Agent for each type of installation:
Stop the DataStax Agent
-
Package installations
-
Tarball installations
sudo service datastax-agent stop
To stop the agent, find the agent Java process ID (PID) and kill the process using its PID number:
ps -ef | grep datastax-agent
sudo kill pid
Start the DataStax Agent
-
Package installations
-
Tarball installations
sudo service datastax-agent start
The agent starts automatically.
Optionally, use the -f option to start the agent in the foreground.
INSTALL_DIRECTORY/bin/datastax-agent
Restart the DataStax Agent
-
Package installations
-
Tarball installations
sudo service datastax-agent restart
To stop the agent, find the agent Java process ID (PID) and kill the process using its PID number:
ps -ef | grep datastax-agent
sudo kill pid
Then, start the agent.
Optionally, use the -f option to start the agent in the foreground.
INSTALL_DIRECTORY/bin/datastax-agent