Github user jerryshao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21426#discussion_r190778192
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -372,8 +376,27 @@ private[spark] class SparkSubmit extends Logging {
           localJars = Option(args.jars).map {
             downloadFileList(_, targetDir, sparkConf, hadoopConf, secMgr)
           }.orNull
    -      localPyFiles = Option(args.pyFiles).map {
    -        downloadFileList(_, targetDir, sparkConf, hadoopConf, secMgr)
    +      localPyFiles = Option(args.pyFiles).map { pyFiles =>
    +        if (isClientPythonSubmit) {
    --- End diff --
    
    Agreed with @vanzin , we can move this logic to python related code.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to