Skip to content

Build Hive Metastore Docker images according to Hive/Hadoop/Java compatibility matrix #82

Description

@idirze

Description

The Hive Metastore Docker image should be refactored to build supported image variants according to the Apache Hive, Hadoop, and Java compatibility matrices.

The current docker/metastore_4x.version tracks:

metastore_version:
  - ARG_METASTORE_VERSION=4.0.1

We should extend the image build strategy to support multiple Hive Metastore versions, including the latest supported Hive releases, while selecting the correct Java base image for each version line.

Goal

Build and publish multiple Hive Metastore Docker image variants based on verified compatibility between:

  • Apache Hive Metastore version
  • Apache Hadoop version
  • Java runtime version
  • Docker base image

Compatibility references

Initial compatibility target

Based on the current Apache Hive downloads page:

Hive line Hadoop compatibility Java compatibility direction Docker image target
Hive 4.0.x Hadoop 3.3.6 should align with Hadoop 3.3.x Java support current 4.x baseline
Hive 4.1.x Hadoop 3.4.1 JDK 17 support Java 17 image variant
Hive 4.2.x Hadoop 3.4.1 JDK 21 minimum Java 21 image variant

Proposed work

  • Review the current Dockerfile and version files.
  • Refactor docker/metastore_4x.version to support multiple Hive Metastore versions.
  • Define an explicit compatibility matrix for Hive/Hadoop/Java.
  • Select the correct eclipse-temurin base image for each supported Hive Metastore version.
  • Avoid automatic Java major upgrades that are not validated against Hive/Hadoop compatibility.
  • Update CI to build all supported image variants.
  • Ensure generated image tags clearly identify the Hive Metastore version and Java runtime.
  • Document the supported image matrix in the repository README.

Acceptance criteria

  • The repository documents the supported Hive/Hadoop/Java matrix.
  • Docker images are built only for validated compatibility combinations.
  • The latest supported Hive Metastore version is included.
  • Hive 3.x and other EOL release lines are not built or published as supported image variants.
  • Dependabot Java base-image upgrades are handled through compatibility-aware updates, not blindly merged.

Related PR

Follow-up to the Dependabot PR: #51

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions