dongjoon-hyun opened a new pull request, #58711: URL: https://github.com/apache/spark/pull/58711
### What changes were proposed in this pull request? This PR aims to support short class names of built-in plugins in `spark.plugins` and `spark.plugins.defaultList`. | Short class name | Fully-qualified class name | | --- | --- | | `DriverTimeoutPlugin` | `org.apache.spark.deploy.DriverTimeoutPlugin` | | `RedirectConsolePlugin` | `org.apache.spark.deploy.RedirectConsolePlugin` | | `ProfilerPlugin` | `org.apache.spark.profiler.ProfilerPlugin` | | `ExecutorPVCResizePlugin` | `org.apache.spark.scheduler.cluster.k8s.ExecutorPVCResizePlugin` | | `ExecutorResizePlugin` | `org.apache.spark.scheduler.cluster.k8s.ExecutorResizePlugin` | | `ExecutorRollPlugin` | `org.apache.spark.scheduler.cluster.k8s.ExecutorRollPlugin` | | `SparkConnectPlugin` | `org.apache.spark.sql.connect.SparkConnectPlugin` | Each item of the `spark.plugins` config entry is resolved via `transform` after `spark.plugins.defaultList` is prepended. - A short class name is matched exactly (case-sensitive) and converted to its fully-qualified class name. - All other values are passed through unchanged. - Since `PluginContainer` removes duplicates after the resolution, a plugin is loaded only once even if both its short and fully-qualified class names are given. ### Why are the changes needed? To improve the usability of built-in plugins. Currently, users must specify long fully-qualified class names. ``` --conf spark.plugins=org.apache.spark.scheduler.cluster.k8s.ExecutorResizePlugin,org.apache.spark.scheduler.cluster.k8s.ExecutorPVCResizePlugin ``` After this PR, users can use the following instead. ``` --conf spark.plugins=ExecutorResizePlugin,ExecutorPVCResizePlugin ``` This is consistent with other Spark configurations which accept short names for built-in implementations, such as `spark.shuffle.manager` (`sort`) and `spark.io.compression.codec` (`zstd`). ### Does this PR introduce _any_ user-facing change? No, there is no behavior change for existing configurations with fully-qualified class names. ### How was this patch tested? Pass the CIs with the newly added test case in `PluginContainerSuite`. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
