diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala index 13678f9012d50..346c7ed7ddd30 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala @@ -40,7 +40,7 @@ import org.apache.ivy.plugins.resolver.{ChainResolver, IBiblioResolver} import org.apache.spark.deploy.rest._ import org.apache.spark.executor._ import org.apache.spark.util.{ChildFirstURLClassLoader, MutableURLClassLoader, Utils} -import org.apache.spark +import org.apache.spark._ /** * Whether to submit, kill, or request the status of an application. @@ -91,7 +91,14 @@ object SparkSubmit { exitFn() } private[spark] def printVersionAndExit() = { - printStream.println(s"Spark Version: ${spark.SPARK_VERSION}") + printStream.println("""Welcome to + ____ __ + / __/__ ___ _____/ /__ + _\ \/ _ \/ _ `/ __/ '_/ + /___/ .__/\_,_/_/ /_/\_\ version %s + /_/ + """.format(SPARK_VERSION)) + printStream.println("Type --help for more information.") exitFn() } diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala index cb61e55e14183..82e66a374249c 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala @@ -413,11 +413,11 @@ private[spark] class SparkSubmitArguments(args: Seq[String], env: Map[String, St case ("--help" | "-h") :: tail => printUsageAndExit(0) - case ("--verbose") :: tail => + case ("--verbose" | "-v") :: tail => verbose = true parse(tail) - case ("--version" | "-v") :: tail => + case ("--version") :: tail => SparkSubmit.printVersionAndExit() case EQ_SEPARATED_OPT(opt, value) :: tail => @@ -487,8 +487,8 @@ private[spark] class SparkSubmitArguments(args: Seq[String], env: Map[String, St | --proxy-user NAME User to impersonate when submitting the application. | | --help, -h Show this help message and exit - | --verbose, Print additional debug output - | --version, -v Print the version of current Spark + | --verbose, -v Print additional debug output + | --version, Print the version of current Spark | | Spark standalone with cluster deploy mode only: | --driver-cores NUM Cores for driver (Default: 1).