Skip to content

Commit

Permalink
log out spark.app.name in the Spark driver logs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterableda committed Dec 6, 2016
1 parent 381ef4e commit 5401e64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ class SparkContext(config: SparkConf) extends Logging {
throw new SparkException("An application name must be set in your configuration")
}

// log out spark.app.name in the Spark driver logs
logInfo(s"Submitted application: $appName")

// System property spark.yarn.app.id must be set if user code ran by AM on a YARN cluster
if (master == "yarn" && deployMode == "cluster" && !_conf.contains("spark.yarn.app.id")) {
throw new SparkException("Detected yarn cluster mode, but isn't running on a cluster. " +
Expand Down

0 comments on commit 5401e64

Please sign in to comment.