You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ta...@apache.org on 2022/05/24 16:30:26 UTC

[hbase] branch branch-2 updated: HBASE-27055 Add additional comments when using HBASE_TRACE_OPTS with standalone mode (#4452)

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

taklwu pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 02c1fef889a HBASE-27055 Add additional comments when using HBASE_TRACE_OPTS with standalone mode (#4452)
02c1fef889a is described below

commit 02c1fef889a041a9cf5ec733160d4319ce989a16
Author: Tak Lon (Stephen) Wu <ta...@apache.org>
AuthorDate: Tue May 24 09:27:15 2022 -0700

    HBASE-27055 Add additional comments when using HBASE_TRACE_OPTS with standalone mode (#4452)
    
    Signed-off-by: Nick Dimiduk <nd...@apache.org>
---
 conf/hbase-env.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/conf/hbase-env.sh b/conf/hbase-env.sh
index 06720b4d5e3..10ba0750cf4 100644
--- a/conf/hbase-env.sh
+++ b/conf/hbase-env.sh
@@ -148,10 +148,14 @@
 # https://github.com/open-telemetry/opentelemetry-java-instrumentation for details on how to
 # configure exporters and other components through system properties.
 #
-# The presence HBASE_TRACE_OPTS indicates that tracing should be enabled, and serves as site-wide
-# settings.
+# The presence HBASE_TRACE_OPTS indicates that tracing should be enabled, adding the agent to the
+# JVM launch command.
 # export HBASE_TRACE_OPTS="-Dotel.traces.exporter=none -Dotel.metrics.exporter=none"
 #
+# For standalone mode, you must explicitly add HBASE_TRACE_OPTS to HBASE_OPTS by uncommenting this line.
+# But do not use and uncomment this line if you're running in distributed mode.
+# export HBASE_OPTS="${HBASE_OPTS} ${HBASE_TRACE_OPTS} -Dotel.resource.attributes=service.name=hbase-standalone"
+#
 # Per-process configuration variables allow for fine-grained configuration control.
 # export HBASE_SHELL_OPTS="${HBASE_SHELL_OPTS} ${HBASE_TRACE_OPTS} -Dotel.resource.attributes=service.name=hbase-shell"
 # export HBASE_JSHELL_OPTS="${HBASE_JSHELL_OPTS} ${HBASE_TRACE_OPTS} -Dotel.resource.attributes=service.name=hbase-jshell"