Skip to content

Commit

Permalink
Minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Or committed Feb 6, 2015
1 parent 02b5cea commit b9e2a08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ private[spark] class SparkSubmitArguments(args: Seq[String], env: Map[String, St
val sparkProperties: HashMap[String, String] = new HashMap[String, String]()

// Standalone cluster mode only
var useRest: Boolean = true
var supervise: Boolean = false
var driverCores: String = null
var submissionToKill: String = null
var submissionToRequestStatusFor: String = null
var useRest: Boolean = true // used internally

/** Default properties present in the currently defined defaults file. */
lazy val defaultSparkProperties: HashMap[String, String] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private class ErrorServlet extends StandaloneRestServlet {
// If there is a version mismatch, include the highest protocol version that
// this server supports in case the client wants to retry with our version
if (versionMismatch) {
error.protocolVersion = serverVersion
error.highestProtocolVersion = serverVersion
response.setStatus(StandaloneRestServer.SC_UNKNOWN_PROTOCOL_VERSION)
} else {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private[spark] class SubmissionStatusResponse extends SubmitRestProtocolResponse
private[spark] class ErrorResponse extends SubmitRestProtocolResponse {
// The highest protocol version that the server knows about
// This is set when the client specifies an unknown version
var protocolVersion: String = null
var highestProtocolVersion: String = null
protected override def doValidate(): Unit = {
super.doValidate()
assertFieldIsSet(message, "message")
Expand Down

0 comments on commit b9e2a08

Please sign in to comment.