Skip to content

Commit 68c031d

Browse files
committed
fix: hbase snapshot export script
1 parent 9e4037d commit 68c031d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hbase/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ FROM stackable/image/java-devel AS hadoop-s3-builder
1818
ARG PRODUCT
1919
ARG RELEASE
2020
ARG HADOOP
21+
ARG HBASE_HBASE
2122
ARG STACKABLE_USER_UID
2223

2324
USER ${STACKABLE_USER_UID}
@@ -42,7 +43,7 @@ export LIBS=$(find /stackable/hadoop/share/hadoop -name '*.jar' -printf '%p:' |
4243
# The variable names are intentionally passed to envsubst in single-quotes,
4344
# so that they are not expanded. Disabling ShellCheck rules in a Dockerfile
4445
# does not work, so please ignore the according warning (SC2016).
45-
envsubst '${HBASE_HBASE}:${LIBS}' < /stackable/bin/export-snapshot-to-s3.env > /stackable/bin/export-snapshot-to-s3
46+
envsubst '${HBASE_HBASE}:${RELEASE}:${LIBS}' < /stackable/bin/export-snapshot-to-s3.env > /stackable/bin/export-snapshot-to-s3
4647
chmod +x /stackable/bin/export-snapshot-to-s3
4748
rm /stackable/bin/export-snapshot-to-s3.env
4849

hbase/hbase/stackable/bin/export-snapshot-to-s3.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sed --in-place '/<\/configuration>/{
6161
# `hbase snapshot export` which results in the error
6262
# 'No FileSystem for scheme "hdfs"'. Passsing the argument
6363
# `--internal-classpath` solves this problem.
64-
/stackable/hbase-${PRODUCT}/bin/hbase \
64+
/stackable/hbase-${HBASE_HBASE}-stackable${RELEASE}/bin/hbase \
6565
--config "$CONF_DIR" \
6666
--internal-classpath \
6767
snapshot export "$@"

0 commit comments

Comments
 (0)