JinHyuk Kim created HBASE-29307:
-----------------------------------

             Summary: Add status command to hbase-daemon.sh for process state 
checking
                 Key: HBASE-29307
                 URL: https://issues.apache.org/jira/browse/HBASE-29307
             Project: HBase
          Issue Type: Improvement
            Reporter: JinHyuk Kim
            Assignee: JinHyuk Kim


Currently, `hbase-daemon.sh` supports commands like `start`, `stop`, and 
`restart`, but lacks a `status` command to check whether a given HBase 
component (e.g., master or regionserver) is running.

As a result, operators and automation tools must rely on external utilities 
such as `jps`, `ps`, or `lsof` to infer the process status — often parsing 
command output manually, which can be error-prone or inconsistent across 
environments.

This patch adds a `status` subcommand to `hbase-daemon.sh`.

 
h1. Benefits
 * Enables easy integration with tools like Ansible, systemd, Kubernetes 
probes, and custom scripts
 * Makes health checking and restart logic simpler and more consistent
 * Removes the need for workaround scripts involving `jps` or `ps -ef | grep 
hbase`
 * Aligns with standard behavior of other Unix-style service scripts



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to