Represents the host and port info for a Kafka broker.
Represents the host and port info for a Kafka broker. Differs from the Kafka project's internal kafka.cluster.Broker, which contains a server ID.
Represents any object that has a collection of OffsetRanges.
Represents any object that has a collection of OffsetRanges. This can be used access the offset ranges in RDDs generated by the direct Kafka DStream (see KafkaUtils.createDirectStream()).
KafkaUtils.createDirectStream(...).foreachRDD { rdd => val offsetRanges = rdd.asInstanceOf[HasOffsetRanges].offsetRanges ... }
Represents a range of offsets from a single Kafka TopicAndPartition.
Represents a range of offsets from a single Kafka TopicAndPartition. Instances of this class
can be created with OffsetRange.create()
.
:: Experimental :: Companion object that provides methods to create instances of Broker.
:: Experimental :: Companion object that provides methods to create instances of Broker.
Companion object the provides methods to create instances of OffsetRange.
Kafka receiver for spark streaming,