-
- Downloads
[SPARK-15942][REPL] Unblock `:reset` command in REPL.
## What changes were proposed in this pull (Paste from JIRA issue.) As a follow up for SPARK-15697, I have following semantics for `:reset` command. On `:reset` we forget all that user has done but not the initialization of spark. To avoid confusion or make it more clear, we show the message `spark` and `sc` are not erased, infact they are in same state as they were left by previous operations done by the user. While doing above, somewhere I felt that this is not usually what reset means. But an accidental shutdown of a cluster can be very costly, so may be in that sense this is less surprising and still useful. ## How was this patch tested? Manually, by calling `:reset` command, by both altering the state of SparkContext and creating some local variables. Author: Prashant Sharma <prashant@apache.org> Author: Prashant Sharma <prashsh1@in.ibm.com> Closes #13661 from ScrapCodes/repl-reset-command.
Showing
- repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala 14 additions, 2 deletions....11/src/main/scala/org/apache/spark/repl/SparkILoop.scala
- repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala 2 additions, 1 deletion...2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala
Loading
Please register or sign in to comment