-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-22777][Scheduler] Kubernetes mode dockerfile permission and distribution #20007
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,12 +168,18 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE" | |
# Copy jars | ||
cp "$SPARK_HOME"/assembly/target/scala*/jars/* "$DISTDIR/jars/" | ||
|
||
# Only create the yarn directory if the yarn artifacts were build. | ||
# Only create the yarn directory if the yarn artifacts were built. | ||
if [ -f "$SPARK_HOME"/common/network-yarn/target/scala*/spark-*-yarn-shuffle.jar ]; then | ||
mkdir "$DISTDIR/yarn" | ||
cp "$SPARK_HOME"/common/network-yarn/target/scala*/spark-*-yarn-shuffle.jar "$DISTDIR/yarn" | ||
fi | ||
|
||
# Only create and copy the dockerfiles directory if the kubernetes artifacts were built. | ||
if [ -d "$SPARK_HOME"/resource-managers/kubernetes/core/target/ ]; then | ||
mkdir -p "$DISTDIR/kubernetes/" | ||
cp -a "$SPARK_HOME"/resource-managers/kubernetes/docker/src/main/dockerfiles "$DISTDIR/kubernetes/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, will be updating the docs in that PR. Thanks! |
||
fi | ||
|
||
# Copy examples and dependencies | ||
mkdir -p "$DISTDIR/examples/jars" | ||
cp "$SPARK_HOME"/examples/target/scala*/jars/* "$DISTDIR/examples/jars" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you expand more on why "-a" is needed? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/resource-managers/kubernetes/docker/src/main/dockerfiles
is a directory? how about/resource-managers/kubernetes/docker/src/main/dockerfiles/
?