forked from oap-project/cloudtik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine getting started documentation with information of examples (oa…
- Loading branch information
1 parent
cc4e833
commit 4a14a49
Showing
7 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Running Spark Pi Example | ||
|
||
It is quite straight forward for running Spark built-in PI example | ||
once you have a CloudTik with Spark runtime started. | ||
|
||
Simple run the following command on your client machine: | ||
``` | ||
cloudtik exec ./your-cluster-config.yaml "spark-submit --master yarn --deploy-mode cluster --name spark-pi --class org.apache.spark.examples.SparkPi --conf spark.yarn.submit.waitAppCompletion=false \$SPARK_HOME/examples/jars/spark-examples_2.12-3.2.1.jar 12345" --job-waiter=spark | ||
``` | ||
This will submit a Spark Pi job to the cluster and running in the background. | ||
This command will wait for the job to finish by specifying Spark job waiter "--job-waiter=spark". | ||
|
||
If you want to run the job fully foreground, you can execute: | ||
``` | ||
cloudtik exec ./your-cluster-config.yaml "spark-submit --master yarn --deploy-mode cluster --name spark-pi --class org.apache.spark.examples.SparkPi \$SPARK_HOME/examples/jars/spark-examples_2.12-3.2.1.jar 12345" | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.