Skip to content

[AMORO-4543][AMS] Allow Spark optimizer submission without a proxy user - #4545

Open
Jetiaime wants to merge 1 commit into
apache:masterfrom
Jetiaime:spark-optimizer-direct-auth-pr
Open

Jetiaime wants to merge 1 commit into
apache:masterfrom
Jetiaime:spark-optimizer-direct-auth-pr

Conversation

@Jetiaime

Copy link
Copy Markdown

Why are the changes needed?

Closes #4543.

A Kerberos-authenticated submitter may have permission to submit directly but no Hadoop proxy permission. Always adding --proxy-user can prevent that valid submission.

Brief change log

  • Omit --proxy-user when export.HADOOP_USER_NAME is explicitly empty.
  • Preserve the existing default proxy user (hadoop) when the property is not set, and keep proxying for non-empty configured users.
  • Do not change application naming, authentication policy, YARN ID extraction, or optimizer release.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible
  • Add screenshots for manual tests if appropriate
  • Run test locally before making a pull request

8 targeted test cases passed on JDK 11 (three new tests and five existing container tests). The main regression also fails when compiled against the unchanged upstream launcher and passes with this patch. The corresponding Maven validate and whitespace checks also passed. Screenshots are not applicable.

./mvnw -o -B -ntp -pl amoro-ams -am -Pskip-dashboard-build -Dtest=TestSparkOptimizerContainer,TestSparkOptimizerContainerProxyUser -Dsurefire.failIfNoSpecifiedTests=false test

No live cluster run was performed on this split branch.

Documentation

  • Does this pull request introduce a new feature? Yes, an explicit opt-out on the existing setting.
  • If yes, how is the feature documented? Docs, in the optimizer management guide.

@github-actions github-actions Bot added type:docs Improvements or additions to documentation module:ams-server Ams server module labels Nov 26, 2026

This branch has not been deployed

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

Labels

module:ams-server Ams server module type:docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Spark optimizer submission cannot opt out of Hadoop proxying

1 participant