From 02c1fef889a041a9cf5ec733160d4319ce989a16 Mon Sep 17 00:00:00 2001 From: "Tak Lon (Stephen) Wu" Date: Tue, 24 May 2022 09:27:15 -0700 Subject: [PATCH] HBASE-27055 Add additional comments when using HBASE_TRACE_OPTS with standalone mode (#4452) Signed-off-by: Nick Dimiduk --- 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 06720b4d5e36..10ba0750cf44 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"