But that is specified via the master already ... via yarn-standalone vs
yarn-client.
Not sure about standalone cluster : so probably useful.

But if it can be inferred, would be better to simplify user interface.
On Mar 7, 2014 12:21 PM, "Patrick Wendell" <notifications@github.com> wrote:

> In core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala:
>
> > +    if (appArgs.master != null) {
> > +      if (appArgs.master.startsWith("yarn")) {
> > +        clusterManager = YARN
> > +      } else if (appArgs.master.startsWith("spark")) {
> > +        clusterManager = STANDALONE
> > +      } else if (appArgs.master.startsWith("mesos")) {
> > +        clusterManager = MESOS
> > +      } else if (appArgs.master.startsWith("local")) {
> > +        clusterManager = LOCAL
> > +      } else {
> > +        System.err.println("master must start with yarn, mesos, spark, or local")
> > +        System.exit(1)
> > +      }
> > +    }
> > +
> > +    val deployOnCluster = appArgs.deployMode == "cluster"
>
> unfortunately not, since YARN and the standalone cluster both support
> running the driver inside or outside of the cluster, so now there is a
> second dimension.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/apache/spark/pull/86/files#r10374754>
> .
>