Spark submits a calculation by calling spark-submit. Spark-submit calls the spark-submit script in the bin directory. We open the spark-submit script.