Skip to content

HBASE-30458 Allow selecting the JDK version in dev-support/hbase_dock… - #8738

Open
mnpoonia wants to merge 1 commit into
apache:masterfrom
mnpoonia:update_jdk_docker
Open

mnpoonia wants to merge 1 commit into
apache:masterfrom
mnpoonia:update_jdk_docker

Conversation

@mnpoonia

@mnpoonia mnpoonia commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

…er build

Add a --jdk 8|17|21 option to build-hbase.sh, passed to the Dockerfiles as the JDK_VERSION build arg. DEFAULT_JDK is 17 on master (8 on branch-2).

…er build

Add a --jdk 8|17|21 option to build-hbase.sh, passed to the Dockerfiles as
the JDK_VERSION build arg. DEFAULT_JDK is 17 on master (8 on branch-2).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mnpoonia

mnpoonia commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@virajjasani @apurtell FYI

@virajjasani virajjasani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left nits, looks good otherwise

case "$1" in
--jdk)
if [ $# -lt 2 ] || [ -z "$2" ]; then
echo "❌ ERROR: --jdk requires a value (supported: $SUPPORTED_JDKS)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove cross checkmark from echo?

set -- "${args[@]+"${args[@]}"}"

if [[ " $SUPPORTED_JDKS " != *" $JDK_VERSION "* ]]; then
echo "❌ ERROR: Unsupported JDK version: $JDK_VERSION (supported: $SUPPORTED_JDKS)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants