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

Failing submission if submitter-local files are provided, but no reso… #362

Closed
wants to merge 2 commits into from
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 @@ -81,6 +81,14 @@ private[spark] class DriverInitContainerComponentsProviderImpl(
"Cannot provide both a certificate file and a trustStore file for init-containers to" +
" use for contacting the resource staging server over TLS.")

OptionRequirements.requireSecondIfFirstIsDefined(
KubernetesFileUtils.getOnlySubmitterLocalFiles(sparkJars ++ sparkFiles).nonEmpty match {
case true => Some(true)
case false => None
},
maybeResourceStagingServerUri,
"Local files were provided, however no resource staging server URI was found.")

require(maybeResourceStagingServerInternalTrustStore.forall { trustStore =>
Option(Utils.resolveURI(trustStore).getScheme).getOrElse("file") match {
case "file" | "local" => true
Expand Down