HyukjinKwon commented on code in PR #38376:
URL: https://github.com/apache/spark/pull/38376#discussion_r1070769064
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/BasicDriverFeatureStep.scala:
##########
@@ -168,27 +168,27 @@ private[spark] class BasicDriverFeatureStep(conf:
KubernetesDriverConf)
MEMORY_OVERHEAD_FACTOR.key -> defaultOverheadFactor.toString)
// try upload local, resolvable files to a hadoop compatible file system
Seq(JARS, FILES, ARCHIVES, SUBMIT_PYTHON_FILES).foreach { key =>
- val uris = conf.get(key).filter(uri =>
KubernetesUtils.isLocalAndResolvable(uri))
+ val (localUris, remoteUris) =
+ conf.get(key).partition(uri =>
KubernetesUtils.isLocalAndResolvable(uri))
val value = {
if (key == ARCHIVES) {
Review Comment:
In case of archives, it should also resolve the URL properly for
`remoteUris` too in order to remove fragments (e.g.,
`file:///tmp/tmp4542734800151332666.txt.tar.gz#test_tar_gz`). Otherwise, it
would fail to upload the file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]