Skip to content

Commit 9ef046c

Browse files
committed
add listener endpoint and info port to hbase-site.xml
1 parent 2a2a5ac commit 9ef046c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hbase/stackable/bin/hbase-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ fi
7979
HBASE_SERVICE_HOST=$(cat /stackable/listener/default-address/address)
8080
HBASE_SERVICE_PORT=$(cat /stackable/listener/default-address/ports/"${HBASE_PORT_NAME}")
8181
HBASE_INFO_PORT=$(cat /stackable/listener/default-address/ports/ui-http)
82+
HBASE_LISTENER_ENDPOINT="$HBASE_SERVICE_HOST:$HBASE_INFO_PORT"
8283
export HBASE_SERVICE_HOST
8384
export HBASE_SERVICE_PORT
8485
export HBASE_INFO_PORT
8586
sed -i -e s/\$\{HBASE_SERVICE_HOST\}/"${HBASE_SERVICE_HOST}"/g /stackable/conf/hbase-site.xml
8687
sed -i -e s/\$\{HBASE_SERVICE_PORT\}/"${HBASE_SERVICE_PORT}"/g /stackable/conf/hbase-site.xml
88+
sed -i -e s/\$\{HBASE_LISTENER_ENDPOINT\}/"${HBASE_LISTENER_ENDPOINT}"/g /stackable/conf/hbase-site.xml
89+
sed -i -e s/\$\{HBASE_INFO_PORT\}/"${HBASE_INFO_PORT}"/g /stackable/conf/hbase-site.xml
8790

8891
rm -f "${STACKABLE_LOG_DIR}/_vector/shutdown"
8992
prepare_signal_handlers

0 commit comments

Comments
 (0)