Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sample starter applications and code for use with the SpringXD proejct

Add `smartgrid-prediction` demo

* Change schema, force double in stream definition
* Add instructions about building pmml module
* Remove unnecessary files
* Use latest boot features
* Update copyrights, mention removing `analytic-pmml` folder in README
* Add reference to smartgrid sample in root README
* Rename `metaModel.pmml` to `prediction.pmml`
latest commit 8f1fcbdbe7
Eric Bottard ericbottard authored ghillert committed
Failed to load latest commit information.
analytics-dashboard Formatting changes
analytics-pmml Update README.adoc
batch-basic updated batch examples for Spring XD 1.1
batch-hashtag-count updated build files for 1.1.0.RELEASE
batch-hive updated build files for 1.1.0.RELEASE
batch-notifications updated build files for 1.1.0.RELEASE
batch-pig updated build files for 1.1.0.RELEASE
batch-simple updated build files for 1.1.0.RELEASE
batch-wordcount updated build files for 1.1.0.RELEASE
groovy-script-sink updated build files for 1.1.0.RELEASE
hdfs-partitioning Add hdfs sink partitioning sample
kafka-message-bus Updated Kafka examples for 1.1.0.RELEASE
kafka-source Updated Kafka examples for 1.1.0.RELEASE
payload-conversion Updated so it can be uploaded to custom modules
payload-value-counter First implementation of a custom counter
pivotal-hd-demo Update README.md
reactor-moving-average updated build files for 1.1.0.RELEASE
reactor-tcp Update name of reactor module to reactor-ip and alter stream def
reactor-top-tags fixed imports in TopTags
redis-store-sink updated build files for 1.1.0.RELEASE
rss-feed-source updated build files for 1.1.0.RELEASE
rxjava-moving-average updated build files for 1.1.0.RELEASE
si-dsl-module updated build files for 1.1.0.RELEASE
simple-word-count Simple word count example, that doesn't require any coding
smartgrid-prediction Add `smartgrid-prediction` demo
spark-streaming-logger-java-sink Add spark streaming java/scala sink modules
spark-streaming-logger-scala-sink Add spark streaming java/scala sink modules
spark-streaming-wordcount-java-processor Add spark streaming java/scala examples
spark-streaming-wordcount-scala-processor Add spark streaming java/scala examples
storm-product-analytics-example storm product analytics example
syslog Add syslog example
tweet-transformer-processor Updated Spring XD versions to 1.1.0.RC1. Clean up repositories
working-with-sqoop XD-2739 Adding a Sqoop example
.gitignore XD-2523 enabled gradle builds for modules
LICENSE Initial commit
README.md Add `smartgrid-prediction` demo

README.md

Spring XD Samples

This repository provides sample starter applications and code for use with the Spring XD project. The following samples are available:

analytics-dashboard

Standalone project which shows how you can use the D3 Javascript library to create visualizations for Spring XD counters.

analytics-pmml

Demonstrates the use of the analytics-pmml module by sending JSON data describing a Iris flower to an http source and using a PMML model to predict the species of Iris.

batch-basic

Shows how to deploy a simple Spring Batch process in Spring XD, without having to compile any code or install any jars.

batch-notifications

This sample will take an input file containing payment data, and import the data into a database using Spring XD's batch job support. During import, various notification events are triggered and printed to the console.

batch-hashtag-count

This sample will take an input file with Twitter JSON data and count the occurrences of hashtags.

batch-simple

This is the quintessential Hello World example for Spring XD. It consists of only one Spring Batch Tasklet which prints out Hello Spring XD!.

batch-wordcount

This is the Spring Batch word-count sample for Hadoop adapted for Spring XD. This sample will take an input file and count the occurrences of each word within that document.

groovy-script-sink

A custom module that illustrates how to bind variables defined as module options to a groovy script.

hdfs-partitioning

Demonstrates the hdfs sink and its partitioning features.

kafka-message-bus

This sample walks you through setting up Kafka as a message bus for Spring XD, also demonstrating partitining and failover.

kafka-source

This sample walks you through setting up a Kafka source in Spring XD, also demonstrating the use of multiple modules for ingestion efficiency.

payload-conversion

This sample project implements a custom processor and demonstrates the use of the Tuple data type.

pivotal-hd-demo

Demo using Spring XD with Pivotal HD.

reactor-moving-average

A custom module that uses Reactor's Stream API to perform stream analysis.

reactor-tcp

Demonstrates the use of Reactor's TCP input source

redis-store-sink

A simple custom sink module project implementing a Redis store, including integration tests.

rss-feed-source

A simple custom source module project implementing an RSS feed, including integration tests.

rxjava-moving-average

A custom module that uses RxJava's Observable API to perform stream analysis.

si-dsl-module

This sample demonstrates how to create a custom module project, including integration tests, and packaging the module as an uber-jar using maven (requires Spring XD 1.1.x). The project also demonstrates the use of the Spring Integration Java DSL

smartgrid-prediction

This sample showcases a fictional use of Spring XD in the context of smart electricity metering and production. It was inspired by the http://www.cse.iitb.ac.in/debs2014/?page_id=42[ACM Distributed Event Based Systems Grand Challenge 2014].

syslog

This sample demonstrates how to setup syslog ingestion from multiple hosts into HDFS.

tweet-transformer-processor

A simple custom processor module project, including integration tests. This one has no external dependencies other than the processor implementation and Spring configuration which is provided either as XML or @Configuration.

Something went wrong with that request. Please try again.