Skip to content

montlake/spark-brooklyn-illustration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick start

Overview

app.yaml describes a cluster of Apache Spark nodes to which Spark applications can subsequently be deployed. It uses definitions from the brooklyn-spark project written by the Apache Brooklyn community.

Usage

To install and run Apache Brooklyn and its CLI refer to the Brooklyn getting started guide. Once the server is running add locations for the clouds you want to target.

Use the br CLI tool to add brooklyn-spark.bom to the catalog and then deploy app.yaml:

br catalog add https://raw.githubusercontent.com/Montlake/blueprint-illustrations/spark-demo-brooklyn/brooklyn-spark.bom
br deploy https://raw.githubusercontent.com/Montlake/blueprint-illustrations/spark-demo-brooklyn/app.yaml

This will deploy the blueprint to AWS EC2 in region us-west-2.

To submit a Spark application click on one of your Spark clusters, invoke the "SubmitSparkApp" effector, the output of the effector will go be displayed in the effectors activity tab.

To destroy the deployment use the stop effector on the application.

Or use the br CLI tool:

# list the applications
br app 

    Id           Name                Status    Location
    x5jg2kaxc9   Example App         RUNNING   do2dmc7xhk

# stop the app
br app x5jg2kaxc9 stop

About

Enhancing the Apache Brooklyn Spark community blueprint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published