adoroszlai opened a new pull request, #8023:
URL: https://github.com/apache/hadoop/pull/8023

   ## What changes were proposed in this pull request?
   
   - Update `Dockerfile` (on branch `docker-hadoop-3.4.2-lean`) to support 
building for `arm64`, too.
       - Use `ghcr.io/apache/hadoop-runner:jdk11-u2204` as base, because 
`apache/hadoop-runner:latest` only has `amd64` image available.
       - Use `TARGETPLATFORM` to decide which tarball to use.
       - Create args for version and flavor, replacing URL.
   - Update the `build-hadoop-image` workflow to create multi-arch images.
   - Add build-arg `BASE_URL` to allow using mirrors (for faster local build).
   - Replace deprecated `ENV HADOOP_CONF_DIR ` syntax.
   
   https://issues.apache.org/jira/browse/HADOOP-19723
   
   ## How was this patch tested?
   
   Workflow 
[run](https://github.com/adoroszlai/hadoop/actions/runs/18377713437) in my fork 
created multi-arch 
[image](https://github.com/adoroszlai/hadoop/pkgs/container/hadoop/539671710?tag=HADOOP-19723).
   
   ```
   #8 0.060 Building for linux/amd64
   ...
   #8 0.060 + export 
HADOOP_URL=https://dlcdn.apache.org/hadoop/common/hadoop-3.4.2/hadoop-3.4.2-lean.tar.gz
   ...
   
   #10 0.076 Building for linux/arm64
   ...
   #10 0.077 + export 
HADOOP_URL=https://dlcdn.apache.org/hadoop/common/hadoop-3.4.2/hadoop-3.4.2-aarch64-lean.tar.gz
   ```
   
   Tested on both amd64 and arm64 platforms.
   
   ```
   $ docker run -it --rm ghcr.io/adoroszlai/hadoop:HADOOP-19723 bash -c "uname 
-a; hadoop version"
   Linux cdb5cdd5ace9 6.8.0-65-generic #68~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 
Tue Jul 15 18:06:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
   Hadoop 3.4.2
   Source code repository https://github.com/apache/hadoop.git -r 
84e8b89ee2ebe6923691205b9e171badde7a495c
   Compiled by ahmarsu on 2025-08-20T10:30Z
   Compiled on platform linux-x86_64
   Compiled with protoc 3.23.4
   From source with checksum fa94c67d4b4be021b9e9515c9b0f7b6
   This command was run using 
/opt/hadoop/share/hadoop/common/hadoop-common-3.4.2.jar
   ```
   
   ```
   $ docker run -it --rm ghcr.io/adoroszlai/hadoop:HADOOP-19723 bash -c "uname 
-a; hadoop version"
   Linux 9a1237ba8fbc 6.10.14-linuxkit #1 SMP Thu Oct 24 19:28:55 UTC 2024 
aarch64 aarch64 aarch64 GNU/Linux
   Hadoop 3.4.2
   Source code repository https://github.com/apache/hadoop.git -r 
e1c0dee881820a4d834ec4a4d2c70d0d953bb933
   Compiled by ahmar on 2025-08-07T15:32Z
   Compiled on platform linux-aarch_64
   Compiled with protoc 3.23.4
   From source with checksum fa94c67d4b4be021b9e9515c9b0f7b6
   This command was run using 
/opt/hadoop/share/hadoop/common/hadoop-common-3.4.2.jar
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to