Spark shell provides a simple way to perform interactive analysis of data. It also enables you to learn the Spark APIs by quickly trying out various APIs. In addition, the similarity to Scala shell and support for Scala APIs also lets you also adapt quickly to Scala language constructs and make better use of Spark APIs.
Start it by running the following in the directory where you installed Spark:
./bin/spark-shell
Spark shell launches and the Spark shell automatically ...