This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-docker-runner.git


The following commit(s) were added to refs/heads/master by this push:
     new c16e2d0  HDDS-14525. Bump Hadoop native lib to 3.4.2 (#54)
c16e2d0 is described below

commit c16e2d0014dd6e69ca0d44ec1241b5aa56e99d81
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Feb 4 19:50:43 2026 +0100

    HDDS-14525. Bump Hadoop native lib to 3.4.2 (#54)
    
    (cherry picked from commit a69054284b901746396b58817b8f3ee8dfd00698)
---
 Dockerfile | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 9740c7b..dade4e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -120,19 +120,18 @@ RUN set -eux ; \
     curl -L ${url} | tar xvz ; \
     mv async-profiler-* /opt/profiler
 
-# Hadoop native libary (Hadoop 3.4.1 doesn't have aarch64 binary)
+# Hadoop native libary
 RUN set -eux ; \
     ARCH="$(arch)" ; \
-    hadoop_version=3.4.0 ; \
+    hadoop_version=3.4.2 ; \
     case "${ARCH}" in \
-        x86_64)  file=hadoop-${hadoop_version}.tar.gz ;; \
-        aarch64) file=hadoop-${hadoop_version}-aarch64.tar.gz ;; \
+        x86_64)  file=hadoop-${hadoop_version}-lean.tar.gz ;; \
+        aarch64) file=hadoop-${hadoop_version}-aarch64-lean.tar.gz ;; \
         *) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
     esac; \
     curl -L 
"https://www.apache.org/dyn/closer.lua?action=download&filename=hadoop/common/hadoop-${hadoop_version}/$file";
 -o "hadoop-${hadoop_version}.tar.gz" && \
-    tar xzvf hadoop-${hadoop_version}.tar.gz -C /tmp && \
-    mv /tmp/hadoop-${hadoop_version}/lib/native/libhadoop.*  /usr/lib/ && \
-    rm -rf /tmp/hadoop-${hadoop_version} && \
+    tar xzvf hadoop-${hadoop_version}.tar.gz -C /usr/lib --strip-components 3 
"hadoop-${hadoop_version}/lib/native/libhadoop.*" && \
+    chown --no-dereference root:root /usr/lib/libhadoop* && \
     rm -f hadoop-${hadoop_version}.tar.gz
 
 # OpenJDK 21


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to