---
title: Charmhub | Deploy Spark using Charmhub - The Open Operator Collection
description: Deploy the latest version of Spark on any cloud.
url: https://charmhub.io/spark/actions
---

# Spark

[Big Data Charmers](https://charmhub.io/publisher/bigdata-charmers "View all packages from Big Data Charmers")

* [Big Data Charmers](https://charmhub.io/publisher/bigdata-charmers "View all packages from Big Data Charmers")
* [Big Data](https://charmhub.io/?filter=big-data)

Platform:

18.04

16.04

14.04

stable 73

```
juju deploy spark
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [connectedcomponent](https://charmhub.io/spark/actions#connectedcomponent)
* [decisiontree](https://charmhub.io/spark/actions#decisiontree)
* [kmeans](https://charmhub.io/spark/actions#kmeans)
* [linearregression](https://charmhub.io/spark/actions#linearregression)
* [list-jobs](https://charmhub.io/spark/actions#list-jobs)
* [logisticregression](https://charmhub.io/spark/actions#logisticregression)
* [matrixfactorization](https://charmhub.io/spark/actions#matrixfactorization)
* [pagerank](https://charmhub.io/spark/actions#pagerank)
* [pca](https://charmhub.io/spark/actions#pca)
* [pregeloperation](https://charmhub.io/spark/actions#pregeloperation)
* [reinstall](https://charmhub.io/spark/actions#reinstall)
* [remove-job](https://charmhub.io/spark/actions#remove-job)
* [restart-spark-job-history-server](https://charmhub.io/spark/actions#restart-spark-job-history-server)
* [shortestpaths](https://charmhub.io/spark/actions#shortestpaths)
* [smoke-test](https://charmhub.io/spark/actions#smoke-test)
* [spark-submit](https://charmhub.io/spark/actions#spark-submit)
* [sparkpi](https://charmhub.io/spark/actions#sparkpi)
* [sql](https://charmhub.io/spark/actions#sql)
* [start-spark-job-history-server](https://charmhub.io/spark/actions#start-spark-job-history-server)
* [stop-spark-job-history-server](https://charmhub.io/spark/actions#stop-spark-job-history-server)
* [stronglyconnectedcomponent](https://charmhub.io/spark/actions#stronglyconnectedcomponent)
* [submit](https://charmhub.io/spark/actions#submit)
* [svdplusplus](https://charmhub.io/spark/actions#svdplusplus)
* [svm](https://charmhub.io/spark/actions#svm)

[Learn about actions >](https://juju.is/docs/juju/action)

* connectedcomponent

  Run the Spark Bench ConnectedComponent benchmark.
* decisiontree

  Run the Spark Bench DecisionTree benchmark.
* kmeans

  Run the Spark Bench KMeans benchmark.
* linearregression

  Run the Spark Bench LinearRegression benchmark.
* list-jobs

  List scheduled periodic jobs.
* logisticregression

  Run the Spark Bench LogisticRegression benchmark.
* matrixfactorization

  Run the Spark Bench MatrixFactorization benchmark.
* pagerank

  Calculate PageRank for a sample data set

  Params

  + iterations
    string

    Number of iterations for the SparkPageRank job
* pca

  Run the Spark Bench PCA benchmark.
* pregeloperation

  Run the Spark Bench PregelOperation benchmark.
* reinstall

  Reinstall spark with the version available in the repo.
* remove-job

  Remove a job previously scheduled for repeated execution.

  Params

  + action-id
    string

    The ID returned by the action that scheduled the job.

  Required

  action-id
* restart-spark-job-history-server

  Restart the Spark job history server.
* shortestpaths

  Run the Spark Bench ShortestPaths benchmark.
* smoke-test

  Verify that Spark is working by calculating pi
* spark-submit

  Submit a job to run with the 'spark-submit' utility.

  Params

  + cron
    string

    Schedule the job to be run periodically, according to the given cron rule. For example, "'\*/5 \* \* \* \*'" will run the job every 5 minutes (note the use of double and single quotes is required to parse this value as a string).
  + job
    string

    URL to a JAR or Python file. This can be any URL supported by spark-submit, such as a local path, remote URL, an hdfs:// path (if connected to HDFS), etc.
  + job-args

    Arguments required by the job.
  + options
    string

    Options to pass to spark-submit. For example, "--driver-memory 1000M --class org.foo.MyApp"

  Required

  job
* sparkpi

  Calculate Pi

  Params

  + partitions
    string

    Number of partitions to use for the SparkPi job
* sql

  Run the Spark Bench SQL benchmark.
* start-spark-job-history-server

  Start the Spark job history server.
* stop-spark-job-history-server

  Stop the Spark job history server.
* stronglyconnectedcomponent

  Run the Spark Bench StronglyConnectedComponent benchmark.
* submit

  DEPRECATED, use the spark-submit action instead.
* svdplusplus

  Run the Spark Bench SVDPlusPlus benchmark.
* svm

  Run the Spark Bench SVM benchmark.
