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

virajjasani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/phoenix-adapters.git


The following commit(s) were added to refs/heads/main by this push:
     new 77feef9  Add $HBASE_CONF_DIR to classpath
77feef9 is described below

commit 77feef9bc882fd3ba538d088345e7866ec6b10a6
Author: Palash Chauhan <[email protected]>
AuthorDate: Thu Jun 4 22:30:00 2026 -0700

    Add $HBASE_CONF_DIR to classpath
---
 bin/phoenix-adapters | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/phoenix-adapters b/bin/phoenix-adapters
index c55fbe1..e6267b3 100755
--- a/bin/phoenix-adapters
+++ b/bin/phoenix-adapters
@@ -270,6 +270,12 @@ HEAP_SETTINGS="$JAVA_HEAP_MAX $JAVA_OFFHEAP_MAX"
 # Initialize CLASSPATH
 CLASSPATH="${PHOENIX_ADAPTERS_CONF_DIR}:$JAVA_HOME/lib/tools.jar"
 
+# Include the HBase config dir (hbase-site.xml etc.) on the classpath so the 
server
+# reads the cluster's generated configuration
+if [ -n "${HBASE_CONF_DIR}" ] && [ -d "${HBASE_CONF_DIR}" ]; then
+    CLASSPATH="${CLASSPATH}:${HBASE_CONF_DIR}"
+fi
+
 # Set up logging options
 if [ -z "${PHOENIX_ADAPTERS_LOGGING_OPTS}" ]; then
     
PHOENIX_ADAPTERS_LOGGING_OPTS="-Dlog4j2.configurationFile=file:$PHOENIX_ADAPTERS_CONF_DIR/log4j2.properties"

Reply via email to