Skip to content

Commit 699f99f

Browse files
authored
chore(hadoop): Bump to hdfs-utils 0.4.0 (#914)
* WIP: Build hdfs-utils from feat/extended-request branch * chore: Bump to hdfs-utils 0.4.0 * changelog * fix: Fix compilation by compiling using Java 17
1 parent 61c4ee7 commit 699f99f

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ All notable changes to this project will be documented in this file.
3737
- ci: Bump `stackabletech/actions` to 0.2.0 ([#901], [#903], [#907], [#910], [#913]).
3838
- ubi-rust-builder: Bump Rust toolchain to 1.81.0 ([#902]).
3939
- ci: Handle release builds in the same build workflows ([#913]).
40+
- hadoop: Bump to `hdfs-utils` 0.4.0 ([#914]).
4041

4142
### Removed
4243

@@ -99,6 +100,7 @@ All notable changes to this project will be documented in this file.
99100
[#910]: https://github.com/stackabletech/docker-images/pull/910
100101
[#912]: https://github.com/stackabletech/docker-images/pull/912
101102
[#913]: https://github.com/stackabletech/docker-images/pull/913
103+
[#914]: https://github.com/stackabletech/docker-images/pull/914
102104

103105
## [24.7.0] - 2024-07-24
104106

hadoop/Dockerfile

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4-
FROM stackable/image/java-devel AS builder
4+
FROM stackable/image/java-devel AS hadoop-builder
55

66
ARG PRODUCT
77
ARG ASYNC_PROFILER
@@ -95,6 +95,17 @@ ARG HDFS_UTILS
9595
ARG PRODUCT
9696
ARG STACKABLE_USER_UID
9797

98+
# Starting with hdfs-utils 0.4.0 we need to use Java 17 for compilation.
99+
# We can not simply use java-devel with Java 17, as it is also used to compile Hadoop in this
100+
# Dockerfile, which needs Java 11. So we need to also use the java-devel image in version 11 and
101+
# install Java 17 ourselves.
102+
# The adptiom yum repo is already added by the java-devel Dockerfile.
103+
RUN microdnf update && \
104+
microdnf install -y temurin-17-jdk && \
105+
microdnf clean all && \
106+
rm -rf /var/cache/yum
107+
ENV JAVA_HOME="/usr/lib/jvm/temurin-17-jdk"
108+
98109
USER ${STACKABLE_USER_UID}
99110
WORKDIR /stackable
100111

@@ -125,9 +136,9 @@ LABEL name="Apache Hadoop" \
125136
summary="The Stackable image for Apache Hadoop." \
126137
description="This image is deployed by the Stackable Operator for Apache Hadoop / HDFS."
127138

128-
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/hadoop-${PRODUCT} /stackable/hadoop-${PRODUCT}/
129-
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/jmx /stackable/jmx/
130-
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/async-profiler /stackable/async-profiler/
139+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-builder /stackable/hadoop-${PRODUCT} /stackable/hadoop-${PRODUCT}/
140+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-builder /stackable/jmx /stackable/jmx/
141+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-builder /stackable/async-profiler /stackable/async-profiler/
131142
COPY --chown=${STACKABLE_USER_UID}:0 --from=hdfs-utils-builder /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar
132143
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /stackable/
133144

hadoop/versions.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"async_profiler": "2.9",
77
"jmx_exporter": "1.0.1",
88
"protobuf": "3.7.1",
9-
"hdfs_utils": "0.3.0",
9+
"hdfs_utils": "0.4.0",
1010
},
1111
{
1212
"product": "3.3.6",
@@ -15,7 +15,7 @@
1515
"async_profiler": "2.9",
1616
"jmx_exporter": "1.0.1",
1717
"protobuf": "3.7.1",
18-
"hdfs_utils": "0.3.0",
18+
"hdfs_utils": "0.4.0",
1919
},
2020
{
2121
"product": "3.4.0",
@@ -24,6 +24,6 @@
2424
"async_profiler": "2.9",
2525
"jmx_exporter": "1.0.1",
2626
"protobuf": "3.7.1",
27-
"hdfs_utils": "0.3.0",
27+
"hdfs_utils": "0.4.0",
2828
},
2929
]

0 commit comments

Comments
 (0)