Skip to content

Install Hue Python 3.9 on demand from regional GCS archive on 2.2/2.3 - #1414

Merged
vinayakumarb merged 2 commits into
GoogleCloudDataproc:mainfrom
vinayakumarb:hue-on-demand-python39
Nov 24, 2026
Merged

vinayakumarb merged 2 commits into
GoogleCloudDataproc:mainfrom
vinayakumarb:hue-on-demand-python39

Conversation

@vinayakumarb

Copy link
Copy Markdown
Contributor

When standalone /usr/local/bin/python3.9 is not pre-installed in Dataproc 2.2 or 2.3 GCE images, download and verify the matching shared OS-flavour archive (python-3.9-{debian12,ubuntu22,rocky9,ubuntu22-arm}.tar.gz) from gs://goog-dataproc-artifacts-/hue/python3.9/ (with gs://hadoop-lib fallback and optional hue-python-archive-url metadata override) before installing the Hue package.

When standalone /usr/local/bin/python3.9 is not pre-installed in Dataproc 2.2
or 2.3 GCE images, download and verify the matching shared OS-flavour archive
(python-3.9-{debian12,ubuntu22,rocky9,ubuntu22-arm}.tar.gz) from
gs://goog-dataproc-artifacts-<region>/hue/python3.9/ (with gs://hadoop-lib
fallback and optional hue-python-archive-url metadata override) before
installing the Hue package.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds support for installing Python 3.9 on Dataproc 2.2 and 2.3 images, which is necessary for Hue installation. The changes include new utility functions in hue.sh for resolving OS-specific Python flavours, downloading and verifying archives from GCS, and installing required runtime libraries, along with updated documentation. The review identified a critical bug in the version string matching logic, an incorrect package name for Rocky Linux 9, and suggested a more robust approach for SHA-256 verification.

Comment thread hue/hue.sh Resolved
Comment thread hue/hue.sh Resolved
Comment thread hue/hue.sh Resolved
@vinayakumarb

Copy link
Copy Markdown
Contributor Author

/gcbrun

@vinayakumarb
vinayakumarb requested review from IshaAg and cjac November 18, 2026 17:55
@vinayakumarb
vinayakumarb merged commit 58b386f into GoogleCloudDataproc:main Nov 24, 2026
8 checks passed
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