/spark-to-solace

self contained example that shows a basic pattern for writing to Solace from Spark partitions

Primary LanguageJava

Spark to Solace

This repository shows how you can write to Solace from Spark partitions. Here's a visualization of what this pattern looks like:

Spark to Solace architecture

Line 71 in App.java shows how you'd use row data in a Solace topic.

Running the example

Download Apache Spark: https://spark.apache.org/downloads.html

Clone this repository:

git clone https://github.com/andrew-j-roberts/spark-to-solace.git
cd spark-to-solace

Run this CLI command:

$SPARK_HOME/bin/spark-submit \
    --class "App" \
    --master "local[4]" \
    target/spark-to-solace-1.0-SNAPSHOT.jar

Resources