[ https://issues.apache.org/jira/browse/SPARK-15014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299118#comment-15299118
]
Jakob Odersky commented on SPARK-15014:
---------------------------------------
spark-shell is a very thin wrapper around the standard scala repl (with spark dependencies).
It does some configuration and exposes a spark context and some imports, almost everything
is implemented in these two files:
- https://github.com/apache/spark/blob/master/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala
- https://github.com/apache/spark/blob/master/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala.
I don't know much about ammonite, but as a workaround could you use spark as a standalone
program in your shell? Just add the spark dependencies and create a spark context manually.
> Spark Shell could use Ammonite Shell
> ------------------------------------
>
> Key: SPARK-15014
> URL: https://issues.apache.org/jira/browse/SPARK-15014
> Project: Spark
> Issue Type: Improvement
> Components: Spark Shell
> Affects Versions: 1.6.1
> Environment: All
> Reporter: John-Michael Reed
> Priority: Minor
> Labels: shell, shell-script
>
> Lihaoyi has an enhanced Scala Shell called Ammonite. https://github.com/lihaoyi/Ammonite
> Users of Ammonite shell have tried to use it with Apache Spark. https://github.com/lihaoyi/Ammonite/issues/382
> Spark Shell does not work with Ammonite Shell, but I want it to because the Ammonite
REPL offers enhanced auto-complete, pretty printing, and other features. See http://www.lihaoyi.com/Ammonite/#Ammonite-REPL
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org
|