You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2020/09/16 09:11:35 UTC

[hbase] 06/07: fix version when debug is on

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch HBASE-25021
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 4955c48d6675564e463650b053ca7bdd8f990ec4
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Tue Sep 15 17:41:24 2020 +0800

    fix version when debug is on
---
 dev-support/hbase_nightly_pseudo-distributed-test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-support/hbase_nightly_pseudo-distributed-test.sh b/dev-support/hbase_nightly_pseudo-distributed-test.sh
index ff4d773..9a00fc5 100755
--- a/dev-support/hbase_nightly_pseudo-distributed-test.sh
+++ b/dev-support/hbase_nightly_pseudo-distributed-test.sh
@@ -176,7 +176,7 @@ fi
 
 echo "HBase version information:"
 "${component_install}/bin/hbase" version 2>/dev/null
-hbase_version=$("${component_install}/bin/hbase" version | head -n 1 2>/dev/null)
+hbase_version=$("${component_install}/bin/hbase" version 2>&1 | grep ^HBase | head -n 1)
 hbase_version="${hbase_version#HBase }"
 
 echo "version is $hbase_version"