Apache Spark supports the following four languages:
Scala, Java, Python and R.
Among these languages, Scala and Python have interactive shells for Spark. The Scala shell can be accessed through spark-shell and the Python shell through pyspark.
Scala is the most used among them because Spark is written in Scala and it is the most popularly used for Spark.
Hope this helps.