Skip to content

Commit 989a7a9

Browse files
committed
working version of hbase-entrypoint.sh
1 parent a60fef6 commit 989a7a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hbase/stackable/bin/hbase-entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ handle_term_signal() {
2727
if [ "${term_child_pid}" ]; then
2828
if [ "regionserver" == "${HBASE_ROLE_NAME}" ]; then
2929
echo "Running pre-shutdown command: /stackable/hbase/bin/hbase org.apache.hadoop.hbase.util.RegionMover ${REGION_MOVER_OPTS}"
30-
/stackable/hbase/bin/hbase org.apache.hadoop.hbase.util.RegionMover "${REGION_MOVER_OPTS}"
30+
# REGION_MOVER_OPTS is a string that contains multiple arguments and needs to be spliced here
31+
# therefore disable shellcheck for this line
32+
# shellcheck disable=SC2086
33+
/stackable/hbase/bin/hbase org.apache.hadoop.hbase.util.RegionMover ${REGION_MOVER_OPTS}
3134
echo "Done pre-shutdown command"
3235
fi
3336
kill -TERM "${term_child_pid}" 2>/dev/null
@@ -55,7 +58,7 @@ mkdir -p /stackable/conf
5558
cp /stackable/tmp/hdfs/hdfs-site.xml /stackable/conf
5659
cp /stackable/tmp/hdfs/core-site.xml /stackable/conf
5760
cp /stackable/tmp/hbase/* /stackable/conf
58-
cp /stackable/tmp/log_config/log4j.properties /stackable/conf
61+
cp /stackable/tmp/log_config/log4j* /stackable/conf
5962

6063
rm -f /stackable/log/_vector/shutdown
6164
prepare_signal_handlers

0 commit comments

Comments
 (0)