Create an input stream that pulls messages from a Kafka Broker.
Create an input stream that pulls messages from a Kafka Broker.
JavaStreamingContext object
Key type of RDD
value type of RDD
Type of kafka key decoder
Type of kafka value decoder
Map of kafka configuration parameters, see http://kafka.apache.org/08/configuration.html
Map of (topic_name -> numPartitions) to consume. Each partition is consumed in its own thread
RDD storage level.
Create an input stream that pulls messages from a Kafka Broker.
Create an input stream that pulls messages from a Kafka Broker.
JavaStreamingContext object
Zookeeper quorum (hostname:port,hostname:port,..).
The group id for this consumer.
Map of (topic_name -> numPartitions) to consume. Each partition is consumed in its own thread.
RDD storage level.
Create an input stream that pulls messages from a Kafka Broker.
Create an input stream that pulls messages from a Kafka Broker. Storage level of the data will be the default StorageLevel.MEMORY_AND_DISK_SER_2.
JavaStreamingContext object
Zookeeper quorum (hostname:port,hostname:port,..)
The group id for this consumer
Map of (topic_name -> numPartitions) to consume. Each partition is consumed in its own thread
Create an input stream that pulls messages from a Kafka Broker.
Create an input stream that pulls messages from a Kafka Broker.
StreamingContext object
Map of kafka configuration parameters, see http://kafka.apache.org/08/configuration.html
Map of (topic_name -> numPartitions) to consume. Each partition is consumed in its own thread.
Storage level to use for storing the received objects
Create an input stream that pulls messages from a Kafka Broker.
Create an input stream that pulls messages from a Kafka Broker.
StreamingContext object
Zookeeper quorum (hostname:port,hostname:port,..)
The group id for this consumer
Map of (topic_name -> numPartitions) to consume. Each partition is consumed in its own thread
Storage level to use for storing the received objects (default: StorageLevel.MEMORY_AND_DISK_SER_2)