Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
JIRA: YARN-11902. Fix Hadoop Yarn UI build failure caused by [email protected].
A build failure occurs in the Yarn UI module during dependency installation due to an incompatible version of [email protected], which enforces a Node.js engine requirement of 20 || 22 || 24.
The current Hadoop build environment uses Node.js 12.22.1, resulting in the following error:
error [email protected]: The engine "node" is incompatible with this module. Expected version "20 || 22 || 24". Got "12.22.1" error Found incompatible module.Root Cause
The mktemp package was pulled in as a transitive dependency.
Version 2.x introduced a strict Node.js engine requirement (≥20), which is incompatible with the current Node 12 environment.
Fix
Pinned the mktemp dependency to a compatible version (0.4.0) using Yarn's resolutions block in package.json:
"resolutions": { "mktemp": "0.4.0" }This resolves the build failure without requiring a Node.js upgrade.
How was this patch tested?
ci
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?