Skip to content

mccarey/twitterstorm-mqttspout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

twitterstorm-mqttspout

mqtt-spout for twitter-storm using mqtt broker

MQTT spout

The Constructor takes as parameters:

The URL of the MQTT broker: String broker_url
The client ID: String clientId
The topics to subscribe: String[] topic
For each topic the associated qos: int [] qos

In the method open of the spout:

We create the MqttClient. We specify the directory /tmp for the persistent data store.
We connect the client
We subscribe to the topics

We put the received messages from the MQTT broker

in a list: LinkedList messages
the messages are removed from the list and transmitted in the topology
    at each call of NextTuple

About

mqtt-spout for Apache-storm using mqtt broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages