Create an input stream that receives messages pushed by a MQTT publisher.
Create an input stream that receives messages pushed by a MQTT publisher.
JavaStreamingContext object
Url of remote MQTT publisher
Topic name to subscribe to
RDD storage level.
Create an input stream that receives messages pushed by a MQTT publisher.
Create an input stream that receives messages pushed by a MQTT publisher. Storage level of the data will be the default StorageLevel.MEMORY_AND_DISK_SER_2.
JavaStreamingContext object
Url of remote MQTT publisher
Topic name to subscribe to
Create an input stream that receives messages pushed by a MQTT publisher.
Create an input stream that receives messages pushed by a MQTT publisher.
StreamingContext object
Url of remote MQTT publisher
Topic name to subscribe to
RDD storage level. Defaults to StorageLevel.MEMORY_AND_DISK_SER_2.