Skip to content

Commit

Permalink
[SPARK-50810][BUILD] SBT supports building profiler module
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Jan 14, 2025
1 parent bba6839 commit 8abe260
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion connector/profiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
## Build

To build

```
./build/mvn clean package -DskipTests -Pjvm-profiler -pl :spark-profiler_2.13 -am
```

or

```
./build/mvn clean package -DskipTests -Pjvm-profiler
./build/sbt -Pjvm-profiler clean "profiler/compile"
```

## Executor Code Profiling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package object profiler {

private[profiler] val EXECUTOR_PROFILING_DFS_DIR =
ConfigBuilder("spark.executor.profiling.dfsDir")
.doc("HDFS compatible file-system path to where the profiler will write output jfr files.")
.doc("HDFS compatible file-system patxh to where the profiler will write output jfr files.")
.version("4.0.0")
.stringConf
.createOptional
Expand Down
4 changes: 2 additions & 2 deletions project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ object BuildCommons {
).map(ProjectRef(buildLocation, _)) ++ sqlProjects ++ streamingProjects ++ connectProjects

val optionallyEnabledProjects@Seq(kubernetes, yarn,
sparkGangliaLgpl, streamingKinesisAsl,
sparkGangliaLgpl, streamingKinesisAsl, profiler,
dockerIntegrationTests, hadoopCloud, kubernetesIntegrationTests) =
Seq("kubernetes", "yarn",
"ganglia-lgpl", "streaming-kinesis-asl",
"ganglia-lgpl", "streaming-kinesis-asl", "profiler",
"docker-integration-tests", "hadoop-cloud", "kubernetes-integration-tests").map(ProjectRef(buildLocation, _))

val assemblyProjects@Seq(networkYarn, streamingKafka010Assembly, streamingKinesisAslAssembly) =
Expand Down

0 comments on commit 8abe260

Please sign in to comment.