Using Spark Submit
Last updated
Was this helpful?
Use the Spark Submit job entry with an external Spark script to run Spark jobs on YARN clusters.
This example shows how to submit a Spark job from PDI.
If you use Spark Submit with Kerberos-secured Cloudera CDP, see Use Kerberos with Spark Submit in the Administer Pentaho Data Integration and Analytics documentation.
Install and configure the Spark client. Follow the Spark Submit job entry instructions in the Pentaho Data Integration documentation.
Open the Spark PI job entry.
Spark PI is the Spark Submit job entry in the sample.
In Spark Submit Utility, enter the path to spark-submit.
Use the Spark client install location.
In Application Jar, enter the path to your Spark examples JAR.
Use either the local JAR or the cluster JAR in HDFS.
In Class Name, enter org.apache.spark.examples.JavaWordCount.
Set Master URL to yarn-client.
For other execution modes, see Submitting Applications in the Spark docs.
In Arguments, enter the path to the input file in HDFS.
Select OK.
Save the job.
Last updated
Was this helpful?
Was this helpful?

