Spark 3.5 needs Java 17 once Iceberg 1.11 is in the picture

source: Apache Iceberg releases — 1.11.0

Spark 3.5 runs happily on Java 8, 11 and 17, and the apache/spark images come in all three. Apache Kyuubi's official image is built on Temurin 8. None of that matters until you add the Iceberg runtime jar: Iceberg 1.7 dropped Java 8, and the 1.11.0 release notes list "Drop support for Java 11". With Iceberg 1.11 on the classpath, the only Spark 3.5 that starts is a Java 17 one.

That decided the image layout of my lakehouse POC. The ETL/notebook image is apache/spark:3.5.8-scala2.12-java17-python3-ubuntu plus the Iceberg runtime and AWS bundle, with SHA-1 checks against Maven Central at build time. The Kyuubi image is the same base with the Kyuubi distribution copied in from the official image (COPY --from=apache/kyuubi:1.12.0 /opt/kyuubi /opt/kyuubi), the AuthZ jar on the Spark classpath, and JAVA_HOME pointed at the image's JDK 17. Kyuubi's server runs on 17 without complaint, and the engines it launches share the exact Spark binary the ETL uses.

The nice side effect is that "same Spark, same Iceberg, same jars" is true for ETL, notebook and gateway, which removes a whole class of "works in the pipeline, fails in the engine" questions.

The rule: when a runtime library raises its Java floor, the floor applies to every JVM that loads it, including the gateway you did not think of as a Spark process.