Stopping services

You can stop the Dgraph, the HDFS Agent, Studio, and the Dgraph Gateway by running the bdd-admin script with the stop command.

Run the following command from the Admin Server:
./bdd-admin.sh stop [component] <option> 

You can specify any of the component and option arguments listed in About the bdd-admin script.

Note: If you stop only the Dgraph, the script automatically stops the HDFS Agent, as well.

When stopping the Dgraph, the script terminates all currently running processes if it does not shut down within 30 seconds. When stopping the HDFS Agent (either directly or by stopping the Dgraph), the script waits for all processes to complete before shutting it down.

Examples

The following command stops every Dgraph, HDFS Agent, Studio, and Dgraph Gateway service in the cluster:
./bdd-admin.sh stop --all
The following command stops just the Studio and Dgraph Gateway services on the web009.us.example.com node:
./bdd-admin.sh stop --bddServer web009.us.example.com