status

The status command checks component statuses and the overall health of the BDD cluster.

status can perform two types of checks:
  • Ping, which returns the status (up or down) of the specified components. This is the command's default behavior.
  • Health check, which returns the overall health of the cluster and the Hive Table Detector.
To check component statuses or cluster health, run the following from the Admin Server:
./bdd-admin.sh status [option <arg>]

status supports the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the components to run on:
  • agent: Dgraph HDFS Agent
  • dgraph: Dgraph
  • dp: Hive Table Detector
  • gateway: Dgraph Gateway
  • studio: Studio
  • transform: Transform Service
  • clustering: Clustering Service (if enabled)
  • wm: Workflow Manager Service
-n, --node <hostname(s)> A comma-separated list of the nodes to run on. Each must be defined in $BDD_HOME/BDD_manager/conf/bdd.conf.
--health-check Returns the health of the cluster and the Hive Table Detector. When specified, the -c or -n options can't be included.

If the healthcheck fails, information on what went wrong can be found in the Studio and Data Processing logs.

If no options are specified, the script returns the statuses of all supported components.

Examples

The following command returns the statuses of all supported components:
./bdd-admin.sh status
The following command returns the health of the cluster and the Hive Table Detector:
./bdd-admin.sh status --health-check
The output from the above command will be similar to the following:
[2015/08/04 11:38:54 -0400] [Admin Server] Checking the health of BDD cluster...
[2015/08/04 11:40:06 -0400] [web009.us.example.com] Check BDD functionality......Pass!
[2015/08/04 11:40:08 -0400] [web009.us.example.com] Check Hive Data Detector health......Hive Data Detector has previously run.
[2015/08/04 11:40:10 -0400] [Admin Server] Successfully checked statuses.