From 82cd4a03e58f91edb01fce300b72aa374a35d281 Mon Sep 17 00:00:00 2001 From: wangjunbo Date: Tue, 20 Sep 2022 20:28:39 +0800 Subject: [PATCH] [SPARK-40506]Spark Streaming metrics name doesn't need application name --- .../main/scala/org/apache/spark/streaming/StreamingSource.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streaming/src/main/scala/org/apache/spark/streaming/StreamingSource.scala b/streaming/src/main/scala/org/apache/spark/streaming/StreamingSource.scala index 0b306a28d1a59..793dfbb979511 100644 --- a/streaming/src/main/scala/org/apache/spark/streaming/StreamingSource.scala +++ b/streaming/src/main/scala/org/apache/spark/streaming/StreamingSource.scala @@ -24,7 +24,7 @@ import org.apache.spark.streaming.ui.StreamingJobProgressListener private[streaming] class StreamingSource(ssc: StreamingContext) extends Source { override val metricRegistry = new MetricRegistry - override val sourceName = "%s.StreamingMetrics".format(ssc.sparkContext.appName) + override val sourceName = "StreamingMetrics" private val streamingListener = ssc.progressListener