サービスのステータスのチェック

bdd-adminスクリプトをstatusコマンドとともに実行することによって、Dgraph、HDFSエージェント、StudioおよびDgraph Gatewayのステータスをチェックできます。

次のコマンドを管理サーバーから実行します。
./bdd-admin.sh status [component] <option>

「bdd-adminスクリプトについて」にリストされている任意のコンポーネント引数およびオプション引数を指定できます。

スクリプトを実行すると、指定されたサービスが実行中、応答していない、または停止中かどうかを確認します。各サービスに対して、ステータスに応じて、次のいずれかのメッセージが出力されます。
[<hostname>] <service> (pid <number>) is running...
[<hostname>] <service> (pid <number>) is not responsible...
[<hostname>] <service> is stopped.

次のコマンドは、クラスタ内のすべてのDgraph、HDFSエージェント、StudioおよびDgraph Gatewayサービスのステータスを返します。
./bdd-admin.sh status --all
すべてのコンポーネントが実行中の場合、スクリプトの出力は次のようになります。
[<hostname>] Dgraph (pid <number>) is running...
[<hostname>] Agent (pid <number>) is running...
[<hostname>] Studio and Endeca Server (pid <number>) is running...
次のコマンドは、web009.us.example.comサーバー上のDgraphサービスのみのステータスを返します。
./bdd-admin.sh status --dgraph web009.us.example.com
Dgraphが実行中ではない場合、スクリプトの出力は次のようになります。
[web009] Dgraph is stopped.