Repository: spark
Updated Branches:
  refs/heads/branch-1.3 f0562b423 -> dad05e068


Add a config option to print DAG.

Add a config option "spark.rddDebug.enable" to check whether to print DAG info. 
When "spark.rddDebug.enable" is true, it will print information about DAG in 
the log.

Author: KaiXinXiaoLei <huleil...@huawei.com>

Closes #4257 from KaiXinXiaoLei/DAGprint and squashes the following commits:

d9fe42e [KaiXinXiaoLei] change  log info
c27ee76 [KaiXinXiaoLei] change log info
83c2b32 [KaiXinXiaoLei] change config option
adcb14f [KaiXinXiaoLei] change the file.
f4e7b9e [KaiXinXiaoLei] add a option to print DAG

(cherry picked from commit 31d435ecfdc24a788a6e38f4e82767bc275a3283)
Signed-off-by: Reynold Xin <r...@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/dad05e06
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/dad05e06
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/dad05e06

Branch: refs/heads/branch-1.3
Commit: dad05e068670f3ec5a016366b62af4b21159ac01
Parents: f0562b4
Author: KaiXinXiaoLei <huleil...@huawei.com>
Authored: Mon Feb 9 20:58:58 2015 -0800
Committer: Reynold Xin <r...@databricks.com>
Committed: Mon Feb 9 20:59:05 2015 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/SparkContext.scala | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/dad05e06/core/src/main/scala/org/apache/spark/SparkContext.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala 
b/core/src/main/scala/org/apache/spark/SparkContext.scala
index 71bdbc9..8d3c3d0 100644
--- a/core/src/main/scala/org/apache/spark/SparkContext.scala
+++ b/core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1420,6 +1420,9 @@ class SparkContext(config: SparkConf) extends Logging 
with ExecutorAllocationCli
     val callSite = getCallSite
     val cleanedFunc = clean(func)
     logInfo("Starting job: " + callSite.shortForm)
+    if (conf.getBoolean("spark.logLineage", false)) {
+      logInfo("RDD's recursive dependencies:\n" + rdd.toDebugString)
+    }
     dagScheduler.runJob(rdd, cleanedFunc, partitions, callSite, allowLocal,
       resultHandler, localProperties.get)
     progressBar.foreach(_.finishAll())


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to