aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorZhang, Liye <liye.zhang@intel.com>2014-12-22 11:36:49 -0800
committerAndrew Or <andrew@databricks.com>2014-12-22 11:38:28 -0800
commit39272c8cdb3dc8ffbce44f6ee8055217d041e165 (patch)
treee7a0419b1fd74b6f9fa908c6a8684e02eb649074 /core
parent96606f69b7cd88edea5d4b6427f598a91ccb4c33 (diff)
downloadspark-39272c8cdb3dc8ffbce44f6ee8055217d041e165.tar.gz
spark-39272c8cdb3dc8ffbce44f6ee8055217d041e165.tar.bz2
spark-39272c8cdb3dc8ffbce44f6ee8055217d041e165.zip
[SPARK-4870] Add spark version to driver log
Author: Zhang, Liye <liye.zhang@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
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/SparkContext.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala
index b1c6a90d18..57bc3d4e4a 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()