Skip to content

Commit b6ac995

Browse files
author
yanmin
committed
Support distributing files to executors
1 parent 697fa1d commit b6ac995

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/raydp-main/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ private[spark] class SparkSubmit extends Logging {
234234
case m if m.startsWith("mesos") => MESOS
235235
case m if m.startsWith("k8s") => KUBERNETES
236236
case m if m.startsWith("local") => LOCAL
237+
case m if m.startsWith("ray") => RAY
237238
case _ => OTHERS
238239
// error("Master must either be yarn or start with spark, mesos, k8s, or local")
239240
// -1
@@ -634,9 +635,9 @@ private[spark] class SparkSubmit extends Logging {
634635
confKey = EXECUTOR_MEMORY.key),
635636
OptionAssigner(args.totalExecutorCores, STANDALONE | MESOS | KUBERNETES, ALL_DEPLOY_MODES,
636637
confKey = CORES_MAX.key),
637-
OptionAssigner(args.files, LOCAL | STANDALONE | MESOS | KUBERNETES, ALL_DEPLOY_MODES,
638+
OptionAssigner(args.files, LOCAL | STANDALONE | MESOS | KUBERNETES | RAY, ALL_DEPLOY_MODES,
638639
confKey = FILES.key),
639-
OptionAssigner(args.archives, LOCAL | STANDALONE | MESOS | KUBERNETES, ALL_DEPLOY_MODES,
640+
OptionAssigner(args.archives, LOCAL | STANDALONE | MESOS | KUBERNETES | RAY, ALL_DEPLOY_MODES,
640641
confKey = ARCHIVES.key),
641642
OptionAssigner(args.jars, LOCAL, CLIENT, confKey = JARS.key),
642643
OptionAssigner(args.jars, STANDALONE | MESOS | KUBERNETES | OTHERS, ALL_DEPLOY_MODES,
@@ -995,7 +996,8 @@ object SparkSubmit extends CommandLineUtils with Logging {
995996
private val LOCAL = 8
996997
private val KUBERNETES = 16
997998
private val OTHERS = 32
998-
private val ALL_CLUSTER_MGRS = YARN | STANDALONE | MESOS | LOCAL | KUBERNETES | OTHERS
999+
private val RAY = 64
1000+
private val ALL_CLUSTER_MGRS = YARN | STANDALONE | MESOS | LOCAL | KUBERNETES | OTHERS | RAY
9991001

10001002
// Deploy modes
10011003
private val CLIENT = 1

0 commit comments

Comments
 (0)