GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/11920
[SPARK-14102] Block `reset` command in SparkShell
## What changes were proposed in this pull request?
Spark Shell provides an easy way to use Spark in Scala environment. This PR
adds `reset` command to a blocked list, also cleaned up according to the Scala
coding style.
```scala
scala> sc
res0: org.apache.spark.SparkContext = org.apache.spark.SparkContext@718fad24
scala> :reset
scala> sc
<console>:11: error: not found: value sc
sc
^
```
If we blocks `reset`, Spark Shell works like the followings.
```scala
scala> :reset
reset: no such command. Type :help for help.
scala> :re
re is ambiguous: did you mean :replay or :require?
```
## How was this patch tested?
Manual. Run `bin/spark-shell` and type `:reset`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-14102
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11920.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11920
----
commit 8b14dba491634c95c166e4011e69c14c0f839b17
Author: Dongjoon Hyun <[email protected]>
Date: 2016-03-23T20:22:02Z
[SPARK-14102] Block `reset` command in SparkShell
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]