Spark

Channel Revision Published Runs on
latest/stable 73 17 Dec 2020
Ubuntu 16.04 Ubuntu 14.04
latest/stable 2 17 Dec 2020
Ubuntu 16.04 Ubuntu 14.04
latest/candidate 73 17 Dec 2020
Ubuntu 16.04
latest/beta 73 17 Dec 2020
Ubuntu 16.04
latest/edge 90 21 Oct 2021
Ubuntu 18.04 Ubuntu 16.04
latest/edge 72 17 Dec 2020
Ubuntu 18.04 Ubuntu 16.04
juju deploy spark
Show information

Platform:

Ubuntu
18.04 16.04 14.04

Learn about actions >

  • 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.