Skip to content

Commit 9d38d3c

Browse files
committed
[SPARK-1853] Show Streaming application code context (file, line number) in Spark Stages UI
1 parent d466d75 commit 9d38d3c

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,9 +1296,6 @@ object SparkContext extends Logging {
12961296

12971297
private[spark] val SPARK_UNKNOWN_USER = "<unknown>"
12981298

1299-
private[spark] val SPARK_JOB_CALL_SITE_SHORT = "spark.job.callSiteShort"
1300-
private[spark] val SPARK_JOB_CALL_SITE_LONG = "spark.job.callSiteLong"
1301-
13021299
implicit object DoubleAccumulatorParam extends AccumulatorParam[Double] {
13031300
def addInPlace(t1: Double, t2: Double): Double = t1 + t2
13041301
def zero(initialValue: Double) = 0.0

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ private[spark] object Utils extends Logging {
852852
callStack += el.toString
853853
}
854854
}
855-
val callStackDepth = System.getProperty("spark.callstack.depth", "10").toInt
855+
val callStackDepth = System.getProperty("spark.callstack.depth", "20").toInt
856856
CallSite(
857857
short = "%s at %s:%s".format(lastSparkMethod, firstUserFile, firstUserLine),
858858
long = callStack.take(callStackDepth).mkString("\n"))

streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ abstract class DStream[T: ClassTag] (
322322
private[streaming] def generateJob(time: Time): Option[Job] = {
323323
getOrCompute(time) match {
324324
case Some(rdd) => {
325-
//ssc.sc.setJobGroup("g","d")
326325
val jobFunc = () => {
327326
val emptyFunc = { (iterator: Iterator[T]) => {} }
328327
context.sparkContext.runJob(rdd, emptyFunc)

0 commit comments

Comments
 (0)