File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ HBASE_ROLE_SERVICE_HOST="${HOSTNAME}.${HBASE_ROLE_SERVICE_NAME}"
21
21
22
22
REGION_MOVER_OPTS=" --regionserverhost ${HBASE_ROLE_SERVICE_HOST} :${HBASE_ROLE_SERVICE_PORT} --operation unload ${REGION_MOVER_OPTS} "
23
23
24
- if [ -f /stackable/kerberos/krb5.conf ]; then
25
- KERBEROS_REALM=$( grep -oP ' default_realm = \K.*' /stackable/kerberos/krb5.conf)
26
- export KERBEROS_REALM
27
- fi
28
-
29
24
prepare_signal_handlers () {
30
25
unset term_child_pid
31
26
unset term_kill_needed
@@ -69,8 +64,17 @@ cp /stackable/tmp/hdfs/core-site.xml /stackable/conf
69
64
cp /stackable/tmp/hbase/* /stackable/conf
70
65
cp /stackable/tmp/log_config/log4j* /stackable/conf
71
66
72
- rm -f /stackable/log/_vector/shutdown
67
+ if [ -f /stackable/kerberos/krb5.conf ]; then
68
+ KERBEROS_REALM=$( grep -oP ' default_realm = \K.*' /stackable/kerberos/krb5.conf)
69
+ export KERBEROS_REALM
70
+ sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/core-site.xml
71
+ sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/hbase-site.xml
72
+ sed -i -e s/\$\{ env\. KERBEROS_REALM\} /" ${KERBEROS_REALM} " /g /stackable/conf/hdfs-site.xml
73
+ fi
74
+
75
+ rm -f " ${STACKABLE_LOG_DIR} /_vector/shutdown"
73
76
prepare_signal_handlers
77
+ /stackable/containerdebug --output=" ${STACKABLE_LOG_DIR} /containerdebug-state.json" --loop &
74
78
/stackable/hbase/bin/hbase " ${HBASE_ROLE_NAME} " start &
75
79
wait_for_termination $!
76
- mkdir -p /stackable/log/ _vector && touch /stackable/log/ _vector/shutdown
80
+ mkdir -p " ${STACKABLE_LOG_DIR} / _vector" && touch " ${STACKABLE_LOG_DIR} / _vector/shutdown"
You can’t perform that action at this time.
0 commit comments