diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2016-02-09 09:05:22 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-02-09 09:05:22 +0000 |
commit | e30121afac35439be5d42c04da6f047f7d973dd6 (patch) | |
tree | 83cff29a3c502222ad136124a965eade3ebedd56 /examples/src | |
parent | d9ba4d27f4d324a7055b9b914c75d176f3e2f71d (diff) | |
download | spark-e30121afac35439be5d42c04da6f047f7d973dd6.tar.gz spark-e30121afac35439be5d42c04da6f047f7d973dd6.tar.bz2 spark-e30121afac35439be5d42c04da6f047f7d973dd6.zip |
[SPARK-13086][SHELL] Use the Scala REPL settings, to enable things like `-i file`.
Now:
```
$ bin/spark-shell -i test.scala
NOTE: SPARK_PREPEND_CLASSES is set, placing locally compiled Spark classes ahead of assembly.
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel).
16/01/29 17:37:38 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/01/29 17:37:39 INFO Main: Created spark context..
Spark context available as sc (master = local[*], app id = local-1454085459000).
16/01/29 17:37:39 INFO Main: Created sql context..
SQL context available as sqlContext.
Loading test.scala...
hello
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.0.0-SNAPSHOT
/_/
Using Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45)
Type in expressions to have them evaluated.
Type :help for more information.
```
Author: Iulian Dragos <jaguarul@gmail.com>
Closes #10984 from dragos/issue/repl-eval-file.
Diffstat (limited to 'examples/src')
0 files changed, 0 insertions, 0 deletions