You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by an...@apache.org on 2014/12/22 20:38:36 UTC

spark git commit: [SPARK-4870] Add spark version to driver log

Repository: spark
Updated Branches:
  refs/heads/master 96606f69b -> 39272c8cd


[SPARK-4870] Add spark version to driver log

Author: Zhang, Liye <li...@intel.com>

Closes #3717 from liyezhang556520/version2Log and squashes the following commits:

ccd30d7 [Zhang, Liye] delete log in sparkConf
330f70c [Zhang, Liye] move the log from SaprkConf to SparkContext
96dc115 [Zhang, Liye] remove curly brace
e833330 [Zhang, Liye] add spark version to driver log


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

Branch: refs/heads/master
Commit: 39272c8cdb3dc8ffbce44f6ee8055217d041e165
Parents: 96606f6
Author: Zhang, Liye <li...@intel.com>
Authored: Mon Dec 22 11:36:49 2014 -0800
Committer: Andrew Or <an...@databricks.com>
Committed: Mon Dec 22 11:38:28 2014 -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/39272c8c/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 b1c6a90..57bc3d4 100644
--- a/core/src/main/scala/org/apache/spark/SparkContext.scala
+++ b/core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -172,6 +172,9 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
   private[spark] def this(master: String, appName: String, sparkHome: String, jars: Seq[String]) =
     this(master, appName, sparkHome, jars, Map(), Map())
 
+  // log out Spark Version in Spark driver log
+  logInfo(s"Running Spark version $SPARK_VERSION")
+  
   private[spark] val conf = config.clone()
   conf.validateSettings()
 


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