@@ -20,6 +20,7 @@ HBASE_UI_PORT_NAME="$4"
2020
2121# Needed for regionmover service and for hbase-site.xml (see below)
2222HBASE_SERVICE_HOST=$( cat /stackable/listener/default-address/address)
23+ export HBASE_SERVICE_HOST
2324
2425REGION_MOVER_OPTS=" --regionserverhost ${HBASE_SERVICE_HOST} :${HBASE_ROLE_SERVICE_PORT} --operation unload ${REGION_MOVER_OPTS} "
2526
@@ -57,9 +58,9 @@ wait_for_termination() {
5758 set -e
5859}
5960
60- # ##################################################################################################
61+ # #############################################################################
6162# main
62- # ##################################################################################################
63+ # #############################################################################
6364mkdir -p /stackable/conf
6465cp /stackable/tmp/hdfs/hdfs-site.xml /stackable/conf
6566cp /stackable/tmp/hdfs/core-site.xml /stackable/conf
@@ -70,20 +71,20 @@ cp /stackable/tmp/log_config/log4j* /stackable/conf
7071if [ -f /stackable/kerberos/krb5.conf ]; then
7172 KERBEROS_REALM=$( grep -oP ' default_realm = \K.*' /stackable/kerberos/krb5.conf)
7273 export KERBEROS_REALM
74+ # the hdfs discovery files are not written by the hbase operator and use
75+ # the dot notation, so they cannot be used with config-utils
7376 sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/core-site.xml
74- sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/hbase-site.xml
7577 sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/hdfs-site.xml
7678fi
7779
7880# Service endpoints
7981HBASE_SERVICE_PORT=$( cat /stackable/listener/default-address/ports/" ${HBASE_PORT_NAME} " )
8082HBASE_INFO_PORT=$( cat /stackable/listener/default-address/ports/" ${HBASE_UI_PORT_NAME} " )
81- HBASE_LISTENER_ENDPOINT=" $HBASE_SERVICE_HOST :$HBASE_INFO_PORT "
8283
83- sed -i -e s/ \$\{ HBASE_SERVICE_HOST \} / " ${HBASE_SERVICE_HOST} " /g /stackable/conf/hbase-site.xml
84- sed -i -e s/ \$\{ HBASE_SERVICE_PORT \} / " ${HBASE_SERVICE_PORT} " /g /stackable/conf/hbase-site.xml
85- sed -i -e s/ \$\{ HBASE_LISTENER_ENDPOINT \} / " ${HBASE_LISTENER_ENDPOINT} " /g /stackable/conf/hbase-site.xml
86- sed -i -e s/ \$\{ HBASE_INFO_PORT \} / " ${HBASE_INFO_PORT} " /g /stackable/conf/hbase-site.xml
84+ export HBASE_SERVICE_PORT
85+ export HBASE_INFO_PORT
86+
87+ config-utils template /stackable/conf/hbase-site.xml
8788
8889rm -f " ${STACKABLE_LOG_DIR} /_vector/shutdown"
8990prepare_signal_handlers
0 commit comments