Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Conversation

@mccheah
Copy link

@mccheah mccheah commented Apr 27, 2017

This makes it such that submitted jars are ahead on the classpath when the executor starts up.

val resolvedDriverJavaOpts = resolvedSparkConf.getAll.map { case (confKey, confValue) =>
s"-D$confKey=$confValue"
sparkConfExecutorsFetchRemoteDeps.set(
EXECUTOR_RESOLVED_MOUNTED_CLASSPATH, resolvedLocalClassPath)
Copy link
Author

Choose a reason for hiding this comment

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

I'm not entirely sure if this is the best way to pass this information along. The submission client here has already resolved what the local classpath should be and assumes that the same localized classpath would be valid on the executors. This is similar to what the YARN submission client does, but it would be nicer to have the driver itself be responsible for determining the classpath of its executors. However, perhaps having such logic on the driver is repetitive if the submission client had already determined what the resolved classpath would be.

Copy link
Author

Choose a reason for hiding this comment

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

Or we can just add jarsDownloadPath/* to the classpath. Everywhere in Spark the exact jar files are enumerated, but since we're guaranteeing that the download path is an empty directory volume mount and is strictly being used for jars, it might make sense to just reference the whole directory in this context.

@mccheah mccheah changed the title Use the dependency download init-containers on executors. [WIP] Use the dependency download init-containers on executors. Apr 27, 2017
@mccheah
Copy link
Author

mccheah commented Apr 27, 2017

Still missing some unit tests but the idea is ready for review - cc @foxish @erikerlandson . Dependent on #246.

@mccheah
Copy link
Author

mccheah commented Apr 28, 2017

Superceded by #251.

@mccheah mccheah closed this Apr 28, 2017
@ash211 ash211 deleted the executor-init-container-downloads-files branch July 27, 2017 07:09
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants