This task is intended to launch a Spark application. The task submits the Spark application for local execution. This task is appropriate for a local deployment where any local file references can be resolved. It is not meant for any type of cluster deployments.
The spark-client task has the following options:
[])<none>)<none>)<none>)1024M)local)<none>)<none>)$ ./mvnw clean install -PgenerateApps $ cd apps/spark-client-task $ ./mvnw clean package
Run the spark-client-task app using the following command and parameters (we are using a class name of org.apache.spark.examples.JavaSparkPi for the --spark.app-class parameter in this example)
java -jar spark-client-task-{version}.jar --spark.app-class=org.apache.spark.examples.JavaSparkPi \
--spark.app-jar=/shared/drive/spark-pi-test.jar \
--spark.app-args=10Then review the log output to make sure the app completed.