Skip to content

Commit 126608a

Browse files
author
Prabeesh K
committed
address the comments
1 parent b90b709 commit 126608a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/src/main/python/streaming/mqtt_wordcount.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
"""
1919
A sample wordcount with MqttStream stream
2020
Usage: mqtt_wordcount.py <broker url> <topic>
21-
To work with Mqtt, Mqtt Message broker/server required.
22-
Mosquitto (http://mosquitto.org/) is an open source Mqtt Broker
23-
In ubuntu mosquitto can be installed using the command `$ sudo apt-get install mosquitto`
24-
Run Mqtt publisher as
25-
`$ bin/run-example \
26-
org.apache.spark.examples.streaming.MQTTPublisher tcp://localhost:1883 foo`
27-
and then run the example as
21+
22+
To run this in your local machine, you need to setup a MQTT broker and publisher first,
23+
Mosquitto is one of the open source MQTT Brokers, see
24+
http://mosquitto.org/
25+
Eclipse paho project provides number of clients and utilities for working with MQTT, see
26+
http://www.eclipse.org/paho/#getting-started
27+
28+
and then run the example
2829
`$ bin/spark-submit --jars external/mqtt-assembly/target/scala-*/\
2930
spark-streaming-mqtt-assembly-*.jar examples/src/main/python/streaming/mqtt_wordcount.py \
3031
tcp://localhost:1883 foo`

0 commit comments

Comments
 (0)