[ https://issues.apache.org/jira/browse/SPARK-17566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15500109#comment-15500109 ]
Saisai Shao commented on SPARK-17566: ------------------------------------- Can you confirm the above command you mentioned can be run on Spark 1.6? From my understanding, this restriction is introduced in SPARK-5173, which is targeted to Spark 1.3. Here is the code which adds the restriction (https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L309-L320). > "--master yarn --deploy-mode cluster" gives "Launching Python applications > through spark-submit is currently only supported for local files" > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: SPARK-17566 > URL: https://issues.apache.org/jira/browse/SPARK-17566 > Project: Spark > Issue Type: Bug > Components: Spark Submit > Affects Versions: 2.0.0 > Reporter: Zhenhua Xu > > In Spark 1.6, the following command runs fine with both primary and > additional python files in hdfs. > /bin/spark-submit --py-files hdfs:///tmp/base.py --master yarn-cluster > hdfs:///tmp/pi.py > In Spark 2.0.0, the following command fails: > /bin/spark-submit --py-files hdfs:///tmp/base.py --master yarn --deploy-mode > cluster hdfs:///tmp/pi.py > Error: > Launching Python applications through spark-submit is currently only > supported for local files: hdfs:///tmp/base.py -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org