File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -120,19 +120,18 @@ RUN set -eux ; \
120120 curl -L ${url} | tar xvz ; \
121121 mv async-profiler-* /opt/profiler
122122
123- # Hadoop native libary (Hadoop 3.4.1 doesn't have aarch64 binary)
123+ # Hadoop native libary
124124RUN set -eux ; \
125125 ARCH="$(arch)" ; \
126- hadoop_version=3.4.0 ; \
126+ hadoop_version=3.4.2 ; \
127127 case "${ARCH}" in \
128- x86_64) file=hadoop-${hadoop_version}.tar.gz ;; \
129- aarch64) file=hadoop-${hadoop_version}-aarch64.tar.gz ;; \
128+ x86_64) file=hadoop-${hadoop_version}-lean .tar.gz ;; \
129+ aarch64) file=hadoop-${hadoop_version}-aarch64-lean .tar.gz ;; \
130130 *) echo "Unsupported architecture: ${ARCH}" ; exit 1 ;; \
131131 esac; \
132132 curl -L "https://www.apache.org/dyn/closer.lua?action=download&filename=hadoop/common/hadoop-${hadoop_version}/$file" -o "hadoop-${hadoop_version}.tar.gz" && \
133- tar xzvf hadoop-${hadoop_version}.tar.gz -C /tmp && \
134- mv /tmp/hadoop-${hadoop_version}/lib/native/libhadoop.* /usr/lib/ && \
135- rm -rf /tmp/hadoop-${hadoop_version} && \
133+ tar xzvf hadoop-${hadoop_version}.tar.gz -C /usr/lib --strip-components 3 "hadoop-${hadoop_version}/lib/native/libhadoop.*" && \
134+ chown --no-dereference root:root /usr/lib/libhadoop* && \
136135 rm -f hadoop-${hadoop_version}.tar.gz
137136
138137# OpenJDK 21
You can’t perform that action at this time.
0 commit comments