You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2023/01/16 02:39:21 UTC
[GitHub] [spark] HyukjinKwon commented on a diff in pull request #38376: [SPARK-40817][K8S] `spark.files` should preserve remote files
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org