You can use the bdd-admin script to perform a number of administrative tasks for the BDD cluster from the command line.
The bdd-admin script must be run from the Admin Server by a user who has passwordless sudo enabled on all nodes in the cluster. The script is located in the $BDD_HOME/BDD_manager/bin directory.
./bdd-admin.sh <command> [component] <option>
The following sections describe the commands, components, and options the bdd-admin script supports.
The command argument determines the action the script will perform. This argument is required. The following table describes the commands the bdd-admin script supports.
Command | Description |
---|---|
refresh-config | Updates the configuration for all nodes in the cluster by copying a modified version of the configuration file from the Admin Server to every other node. |
autostart | Enables and disables automatic restart for the specified services. |
start | Starts the specified services if they are not already running. |
stop | Stops the specified services if they are running. |
restart | Restarts the specified services. |
status | Returns the status of the specified services. |
dgraph-admin | Performs administrative operations for the Dgraph. For more information, see Dgraph administrative operations. |
update-model | Not supported. Updates the models used by Data Enrichment modules, or reverts all changes made to the models. |
The component argument enables you to run the script on a specific service. This argument is optional. If you omit it, the script will run on all services.
Component | Description |
---|---|
--dgraph | Runs the script on the Dgraph only. Note that running some commands on the Dgraph will also have an effect on the HDFS Agent. |
--agent | Runs the script on the HDFS Agent only. |
--bddServer | Runs the script on Studio and the Dgraph Gateway. |
The option argument specifies the node(s) the script will run on. This argument is required.
Option | Description |
---|---|
--all | Runs the script on all BDD nodes in the cluster. |
<hostname> | Runs the script on the specified
node. You must provide the node's fully qualified hostname; for example,
web009.us.example.com.
Additionally, the name you provide must match one defined in the <COMPONENT>_SERVERS property for the service(s) the script will run on. For example, if you run the script with the --dgraph component argument, the hostname you provide must match a hostname listed in the DGRAPH_SERVERS property. |
./bdd-admin.sh --help
./bdd-admin.sh --help refresh-config