Skip to content

Commit fdbc082

Browse files
authored
fix: Hadoop build permissions (#1134)
1 parent 531af6b commit fdbc082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hadoop/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ microdnf update
2424
microdnf install boost1.78-devel automake libtool
2525
microdnf clean all
2626
rm -rf /var/cache/yum
27+
mkdir /opt/protobuf
28+
chown ${STACKABLE_USER_UID}:0 /opt/protobuf
2729
EOF
2830

31+
USER ${STACKABLE_USER_UID}
2932
# This Protobuf version is the exact version as used in the Hadoop Dockerfile
3033
# See https://github.com/apache/hadoop/blob/trunk/dev-support/docker/pkg-resolver/install-protobuf.sh
3134
# (this was hardcoded in the Dockerfile in earlier versions of Hadoop, make sure to look at the exact version in Github)
@@ -58,7 +61,6 @@ chmod -x "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar"
5861
ln -s "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar" /stackable/jmx/jmx_prometheus_javaagent.jar
5962
EOF
6063

61-
USER ${STACKABLE_USER_UID}
6264
WORKDIR /build
6365
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches/patchable.toml /build/src/hadoop/stackable/patches/patchable.toml
6466
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches/${PRODUCT} /build/src/hadoop/stackable/patches/${PRODUCT}

0 commit comments

Comments
 (0)