-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50819] Refactor Spark profiler module
### What changes were proposed in this pull request? This PR refactors the `ExecutorProfilerPlugin` to prepare to support driver profiling, it - re-organize the classes from `o.a.s.executor.profiler` to `o.a.s.profiler` package, with some class renaming. - re-organize the configuration namespace from `spark.executor.profiling.` to `spark.profiler.`, and tune some configuration keys. ### Why are the changes needed? The profiler could be more generic to - extend the scope to support driver profiling, see #49483 - maybe support other profilers like JDK built-in JFR ### Does this PR introduce _any_ user-facing change? No, it's an unreleased feature. ### How was this patch tested? GHA verifies code compilation, and I tested it on a YARN cluster ``` bin/spark-submit run-example \ --deploy-mode client \ --conf spark.plugins=org.apache.spark.profiler.ProfilerPlugin \ --conf spark.profiler.executor.enabled=true \ --conf spark.profiler.executor.fraction=1 \ --conf spark.profiler.dfsDir=hdfs:///spark-profiling \ SparkPi 100000 ``` ``` $ hadoop fs -ls /spark-profiling/application_1736320707252_0029 Found 48 items -rw-rw---- 3 hadoop supergroup 4944251 2025-01-15 11:21 /spark-profiling/application_1736320707252_0029/profile-exec-1.jfr -rw-rw---- 3 hadoop supergroup 3527597 2025-01-15 11:21 /spark-profiling/application_1736320707252_0029/profile-exec-10.jfr -rw-rw---- 3 hadoop supergroup 3352900 2025-01-15 11:21 /spark-profiling/application_1736320707252_0029/profile-exec-11.jfr -rw-rw---- 3 hadoop supergroup 3464907 2025-01-15 11:21 /spark-profiling/application_1736320707252_0029/profile-exec-12.jfr ... ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49492 from pan3793/SPARK-50819. Authored-by: Cheng Pan <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information
1 parent
9841ae2
commit 4bd37aa
Showing
4 changed files
with
75 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters