Skip to content

[KYUUBI #7615] Move engine application manager info configuration to the start method - #7616

Open
wForget wants to merge 2 commits into
apache:masterfrom
wForget:KYUUBI-7615
Open

[KYUUBI #7615] Move engine application manager info configuration to the start method#7616
wForget wants to merge 2 commits into
apache:masterfrom
wForget:KYUUBI-7615

Conversation

@wForget

@wForget wForget commented Aug 6, 2026

Copy link
Copy Markdown
Member

Why are the changes needed?

Closes #7615.

ProcBuilder initializes the engine application manager information during trait construction. For SparkProcessBuilder, this invokes appMgrInfo(), which eventually evaluates defaultsConf before the subclass field sparkHome has been initialized.

At that point, sparkHome is still null, so the path to spark-defaults.conf is resolved incorrectly and defaultsConf is cached as an empty map. Consequently, spark.master cannot be loaded from spark-defaults.conf, causing Kyuubi to select the wrong cluster manager.

This patch moves the engine application manager information initialization to ProcBuilder#start, where the process builder has been fully initialized.

How was this patch tested?

Added a unit test and manually verified that the Spark engine starts successfully when spark.master is configured in spark-defaults.conf.

Was this patch authored or co-authored using generative AI tooling?

No

@wForget wForget self-assigned this Aug 7, 2026
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.

[Bug] SparkProcessBuilder fails to load spark.master from spark-defaults.conf

1 participant