Skip to content

Commit

Permalink
Set max retry to 1 only for interactive sessions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin Chan committed Jul 12, 2016
1 parent 9d77ee0 commit 39a5162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ object InteractiveSession {
}

val create = { (s: InteractiveSession) =>
if (livyConf.isSparkMasterYarn) {
builder.conf("spark.yarn.maxAppAttempts", "1")
}
SparkApp.create(s.uuid, builder, None, List(kindString), livyConf, Option(s))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ object SparkApp extends Logging {
if (livyConf.isSparkMasterYarn) {
val appTag = uuidToAppTag(uuid)
builder.conf("spark.yarn.tags", appTag)
builder.conf("spark.yarn.maxAppAttempts", "1")

listener.foreach(_.startingApp())
val process: Option[LineBufferedProcess] = {
Expand Down

0 comments on commit 39a5162

Please sign in to comment.