Skip to content

Commit

Permalink
Fix wrong system property being set.
Browse files Browse the repository at this point in the history
This was added by the fix to SPARK-2668: a stray equal sign was
creating a bad system property, and the Jetty initialization
code was tripping on it.

Also fixed a "MatchError" that could be hit in ApplicationMaster.
  • Loading branch information
Marcelo Vanzin committed Sep 24, 2014
1 parent 8b0933d commit 6d5b84e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,17 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
// it has an uncaught exception thrown out. It needs a shutdown hook to set SUCCEEDED.
status = FinalApplicationStatus.SUCCEEDED
} catch {
case e: InvocationTargetException => {
case e: InvocationTargetException =>
e.getCause match {
case _: InterruptedException => {
case _: InterruptedException =>
// Reporter thread can interrupt to stop user class
}

case e => throw e
}
}
} finally {
logDebug("Finishing main")
finalStatus = status
}
finalStatus = status
}
}
userClassThread.setName("Driver")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private[spark] trait ClientBase extends Logging {
}

// For log4j configuration to reference
javaOpts += "-D=spark.yarn.app.container.log.dir=" + ApplicationConstants.LOG_DIR_EXPANSION_VAR
javaOpts += ("-Dspark.yarn.app.container.log.dir=" + ApplicationConstants.LOG_DIR_EXPANSION_VAR)

val userClass =
if (args.userClass != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ trait ExecutorRunnableUtil extends Logging {
*/

// For log4j configuration to reference
javaOpts += "-D=spark.yarn.app.container.log.dir=" + ApplicationConstants.LOG_DIR_EXPANSION_VAR
javaOpts += ("-Dspark.yarn.app.container.log.dir=" + ApplicationConstants.LOG_DIR_EXPANSION_VAR)

val commands = Seq(Environment.JAVA_HOME.$() + "/bin/java",
"-server",
Expand Down

0 comments on commit 6d5b84e

Please sign in to comment.