File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
yarn/src/main/scala/org/apache/spark/deploy/yarn Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import org.apache.hadoop.yarn.api._
3535import org .apache .hadoop .yarn .api .records ._
3636import org .apache .hadoop .yarn .client .api .NMClient
3737import org .apache .hadoop .yarn .conf .YarnConfiguration
38+ import org .apache .hadoop .yarn .exceptions .YarnException
3839import org .apache .hadoop .yarn .ipc .YarnRPC
3940import org .apache .hadoop .yarn .util .{ConverterUtils , Records }
4041
@@ -109,7 +110,14 @@ class ExecutorRunnable(
109110 }
110111
111112 // Send the start request to the ContainerManager
112- nmClient.startContainer(container, ctx)
113+ try {
114+ nmClient.startContainer(container, ctx)
115+ } catch {
116+ case ex : YarnException =>
117+ logError(" Exception while start container %s on host %s:"
118+ .format(container.getId, hostname), ex)
119+ throw ex
120+ }
113121 }
114122
115123 private def prepareCommand (
You can’t perform that action at this time.
0 commit comments