Skip to content

Commit 4b2b3da

Browse files
LucaCanalisrowen
authored andcommitted
[SPARK-26928][CORE][FOLLOWUP] Fix JVMCPUSource file name and minor updates to doc
## What changes were proposed in this pull request? This applies some minor updates/cleaning following up SPARK-26928, notably renaming JVMCPU.scala to JVMCPUSource.scala. ## How was this patch tested? Manually tested Closes apache#24201 from LucaCanali/fixupSPARK-26928. Authored-by: Luca Canali <[email protected]> Signed-off-by: Sean Owen <[email protected]>
1 parent 2fbed37 commit 4b2b3da

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

core/src/main/scala/org/apache/spark/executor/ExecutorSource.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717

1818
package org.apache.spark.executor
1919

20-
import java.lang.management.ManagementFactory
2120
import java.util.concurrent.ThreadPoolExecutor
22-
import javax.management.{MBeanServer, ObjectName}
2321

2422
import scala.collection.JavaConverters._
25-
import scala.util.control.NonFatal
2623

2724
import com.codahale.metrics.{Gauge, MetricRegistry}
2825
import org.apache.hadoop.fs.FileSystem

core/src/main/scala/org/apache/spark/metrics/source/JVMCPU.scala renamed to core/src/main/scala/org/apache/spark/metrics/source/JVMCPUSource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package org.apache.spark.metrics.source
1919

2020
import java.lang.management.ManagementFactory
2121

22-
import com.codahale.metrics.{Counter, Gauge, MetricRegistry}
22+
import com.codahale.metrics.{Gauge, MetricRegistry}
2323
import javax.management.{MBeanServer, ObjectName}
2424
import scala.util.control.NonFatal
2525

docs/monitoring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ This is the component with the largest amount of instrumented metrics
948948
- LongAccumulatorSource
949949

950950
- namespace=spark.streaming
951-
- **note** applies to Spark Structured Streaming only. Conditional to a configuration
951+
- **note:** This applies to Spark Structured Streaming only. Conditional to a configuration
952952
parameter: `spark.sql.streaming.metricsEnabled=true` (default is false)
953953
- eventTime-watermark
954954
- inputRate-total
@@ -1076,7 +1076,7 @@ Note: applies when running in Spark standalone as worker
10761076
- coresFree
10771077
- memFree_MB
10781078

1079-
## Component instance = shuffleService
1079+
### Component instance = shuffleService
10801080
Note: applies to the shuffle service
10811081

10821082
- blockTransferRateBytes (meter)

0 commit comments

Comments
 (0)