Skip to content

HIVE-29793: Packaging pom.xml docker profile passes flags and values as joined argv strings - #6671

Open
rubenada wants to merge 1 commit into
apache:masterfrom
rubenada:HIVE-29793
Open

HIVE-29793: Packaging pom.xml docker profile passes flags and values as joined argv strings#6671
rubenada wants to merge 1 commit into
apache:masterfrom
rubenada:HIVE-29793

Conversation

@rubenada

@rubenada rubenada commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

packaging/pom.xml docker profile passes flags and values as joined argv strings.
Thus, when running mvn ... -Pdocker, the build.sh is invoked with argv[1]=="-hadoop 3.4.2" instead of argv[1]=="-hadoop", argv[2]=="3.4.2" , so the argument parser never matches its -hadoop / -tez cases and the build fails with Error: -tez <Tez version> is required.
Fix: split each <argument> into flag and value pairs.

Why are the changes needed?

Fix Error: -tez <Tez version> is required when running mvn ... -Pdocker.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

mvn clean install -DskipTests -Pdocker,dist

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@soumyakanti3578 soumyakanti3578 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.

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants