Using Spark Standalone

For a simple test of your Spark installation, run the following command:

  • On Spark 2.0.1 or later:
    /opt/mapr/spark/spark-<version>/bin/run-example --master spark://<Spark Master node hostname>:7077 SparkPi 10
  • On Spark 1.6.1:
    MASTER=spark://<Spark Master node hostname>:7077 /opt/mapr/spark/spark-<version>/bin/run-example org.apache.spark.examples.SparkPi 10

For more information about running Spark applications, see the Apache Spark documentation.