In yarn-client mode, complete the following steps to run Spark from
the Spark shell:
-
Navigate to the Spark-on-YARN installation directory, and insert your Spark
version into the command.
cd /opt/mapr/spark/spark-<version>/
-
Issue the following command to run Spark from the Spark
shell:
Note: You must use yarn-client mode to run Spark from the Spark
shell. The yarn-cluster mode is not supported.