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 cc37c23 HDDS-12804. Include Hadoop native library libhadoop.so (#46)
cc37c23 is described below
commit cc37c23c2918923bf7bd227fd553cb8059372cc0
Author: Sammi Chen <[email protected]>
AuthorDate: Thu Apr 10 15:04:03 2025 +0800
HDDS-12804. Include Hadoop native library libhadoop.so (#46)
---
Dockerfile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Dockerfile b/Dockerfile
index f8fd0c8..3e54320 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -110,6 +110,21 @@ 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)
+RUN set -eux ; \
+ ARCH="$(arch)" ; \
+ hadoop_version=3.4.0 ; \
+ case "${ARCH}" in \
+ x86_64) file=hadoop-${hadoop_version}.tar.gz ;; \
+ aarch64) file=hadoop-${hadoop_version}-aarch64.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} && \
+ rm -f hadoop-${hadoop_version}.tar.gz
+
# OpenJDK 21
RUN set -eux ; \
ARCH="$(arch)"; \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]