[ 
https://issues.apache.org/jira/browse/HBASE-29307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Duo Zhang resolved HBASE-29307.
-------------------------------
    Fix Version/s: 2.7.0
                   3.0.0-beta-2
                   2.6.3
                   2.5.12
     Hadoop Flags: Reviewed
       Resolution: Fixed

Pushed to all active branches.

Thanks [~jinhyukify] for contributing!

Please remember to fill the release note.

> 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
>          Components: scripts
>            Reporter: JinHyuk Kim
>            Assignee: JinHyuk Kim
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.0, 3.0.0-beta-2, 2.6.3, 2.5.12
>
>
> 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