Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import org.apache.hadoop.yarn.conf.YarnConfiguration
import org.apache.hadoop.yarn.ipc.YarnRPC
import org.apache.hadoop.yarn.util.{ConverterUtils, Records}

import org.apache.spark.{SecurityManager, SparkConf, Logging}
import org.apache.spark.{SparkException, SecurityManager, SparkConf, Logging}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: imports should be ordered alphabetically, so SparkException should come after SparkConf here

import org.apache.spark.network.util.JavaUtils

class ExecutorRunnable(
Expand Down Expand Up @@ -109,7 +109,13 @@ class ExecutorRunnable(
}

// Send the start request to the ContainerManager
nmClient.startContainer(container, ctx)
try {
nmClient.startContainer(container, ctx)
} catch {
case ex: Exception =>
throw new SparkException("Exception while starting container ${container.getId}" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need an "s" before the quote for the interpolation to work.

" on host $hostname", ex)
}
}

private def prepareCommand(
Expand Down