Run Spark from the Spark Shell
About this task
Procedure
-
Navigate to the Spark on YARN installation directory:
Substitute your Spark version in the command. For
example:
1.3.1
cd /opt/mapr/spark/spark-<version>/
-
Issue the following command to run Spark from the Spark
shell:
MASTER=yarn-client ./bin/spark-shell
NOTE:You must use yarn-client
mode to run Spark from the Spark shell. Theyarn-cluster
mode is not supported.