diff options
author | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 18:05:11 -0800 |
---|---|---|
committer | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 18:05:11 -0800 |
commit | 0ca18b8b0787d1b467bc6de3e72ed9a52bdf63fc (patch) | |
tree | aa9d9a654dddcbd640c76e03f3d8f5252ed622ab /repl | |
parent | 41d6586e8e0df94fee66a386c967b56c535e3c28 (diff) | |
download | spark-0ca18b8b0787d1b467bc6de3e72ed9a52bdf63fc.tar.gz spark-0ca18b8b0787d1b467bc6de3e72ed9a52bdf63fc.tar.bz2 spark-0ca18b8b0787d1b467bc6de3e72ed9a52bdf63fc.zip |
Revert GraphX changes to SparkILoopInit
The changes were to support a custom banner in spark-shell for use by
graphx-shell, but once GraphX is merged into Spark, a separate shell
will be unnecessary.
Diffstat (limited to 'repl')
-rw-r--r-- | repl/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/repl/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala b/repl/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala index 5ddba47789..21b1ba305d 100644 --- a/repl/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala +++ b/repl/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala @@ -20,17 +20,13 @@ trait SparkILoopInit { /** Print a welcome message */ def printWelcome() { - val prop = System.getenv("SPARK_BANNER_TEXT") - val bannerText = - if (prop != null) prop else - """Welcome to + echo("""Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /___/ .__/\_,_/_/ /_/\_\ version 0.9.0-SNAPSHOT /_/ -""" - echo(bannerText) +""") import Properties._ val welcomeMsg = "Using Scala %s (%s, Java %s)".format( versionString, javaVmName, javaVersion) @@ -124,10 +120,6 @@ trait SparkILoopInit { @transient val sc = org.apache.spark.repl.Main.interp.createSparkContext(); """) command("import org.apache.spark.SparkContext._") - val prop = System.getenv("SPARK_SHELL_INIT_BLOCK") - if (prop != null) { - command(prop) - } } echo("Spark context available as sc.") } |