Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13086][Shell] Use the Scala REPL settings, to enable things like -i file. #10984

Closed
wants to merge 1 commit into from

Conversation

dragos
Copy link
Contributor

@dragos dragos commented Jan 29, 2016

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.

@SparkQA
Copy link

SparkQA commented Jan 29, 2016

Test build #50385 has finished for PR 10984 at commit ba19bfd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dragos
Copy link
Contributor Author

dragos commented Feb 8, 2016

@jodersky @CodingCat can you have a look? I think you've look at this part of the code in the past.

@jodersky
Copy link
Member

jodersky commented Feb 8, 2016

Looks good to me.

@CodingCat
Copy link
Contributor

LGTM

@srowen
Copy link
Member

srowen commented Feb 9, 2016

Merged to master

@asfgit asfgit closed this in e30121a Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants