Skip to content

Commit 42476b2

Browse files
committed
Fix Hadoop
1 parent 5c0b829 commit 42476b2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hadoop/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ ARG TARGETARCH
1010
ARG TARGETOS
1111
ARG STACKABLE_USER_UID
1212

13-
USER ${STACKABLE_USER_UID}
1413
WORKDIR /stackable
1514

16-
COPY hadoop/stackable/jmx /stackable/jmx
17-
COPY hadoop/stackable/fuse_dfs_wrapper /stackable/fuse_dfs_wrapper
15+
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/jmx /stackable/jmx
16+
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /stackable/fuse_dfs_wrapper
1817

1918
# The symlink from JMX Exporter 0.16.1 to the versionless link exists because old HDFS Operators (up until and including 23.7) used to hardcode
2019
# the version of JMX Exporter like this: "-javaagent:/stackable/jmx/jmx_prometheus_javaagent-0.16.1.jar"
@@ -55,7 +54,7 @@ RUN microdnf update && \
5554

5655
WORKDIR /stackable
5756

58-
COPY hadoop/stackable/patches /stackable/patches
57+
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches /stackable/patches
5958

6059
# Hadoop Pipes requires libtirpc to build, whose headers are not packaged in RedHat UBI, so skip building this module
6160
# Build from source to enable FUSE module, and to apply custom patches.
@@ -129,7 +128,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/hadoop-${PRODUCT}
129128
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/jmx /stackable/jmx/
130129
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/async-profiler /stackable/async-profiler/
131130
COPY --chown=${STACKABLE_USER_UID}:0 --from=hdfs-utils-builder /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar
132-
COPY hadoop/stackable/fuse_dfs_wrapper /stackable/hadoop/bin
131+
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /stackable/hadoop/bin
133132

134133

135134
# fuse is required for fusermount (called by fuse_dfs)

0 commit comments

Comments
 (0)