You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wangzhun (Jira)" <ji...@apache.org> on 2019/12/27 12:05:00 UTC

[jira] [Created] (SPARK-30365) When deploy mode is a client, why doesn't it support remote "spark.files" download?

wangzhun created SPARK-30365:
--------------------------------

             Summary: When deploy mode is a client, why doesn't it support remote "spark.files" download?
                 Key: SPARK-30365
                 URL: https://issues.apache.org/jira/browse/SPARK-30365
             Project: Spark
          Issue Type: Question
          Components: Spark Submit
    Affects Versions: 2.3.2
         Environment: {code:java}
 ./bin/spark-submit \
--master yarn  \
--deploy-mode client \
......{code}
            Reporter: wangzhun


{code:java}
// In client mode, download remote files.
var localPrimaryResource: String = null
var localJars: String = null
var localPyFiles: String = null
if (deployMode == CLIENT) {
  localPrimaryResource = Option(args.primaryResource).map {
    downloadFile(_, targetDir, sparkConf, hadoopConf, secMgr)
  }.orNull
  localJars = Option(args.jars).map {
    downloadFileList(_, targetDir, sparkConf, hadoopConf, secMgr)
  }.orNull
  localPyFiles = Option(args.pyFiles).map {
    downloadFileList(_, targetDir, sparkConf, hadoopConf, secMgr)
  }.orNull
}
{code}
The above Spark2.3 SparkSubmit code does not download the corresponding file of "spark.files".

I think it is possible to download remote files locally and add them to classPath.

For example, can support --files configuration remote hive-site.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org