Class/Object

org.apache.spark.streaming.kafka

KafkaCluster

Related Docs: object KafkaCluster | package kafka

Permalink

class KafkaCluster extends Serializable

:: DeveloperApi :: Convenience methods for interacting with a Kafka cluster. See A Guide To The Kafka Protocol for more details on individual api calls.

Annotations
@DeveloperApi()
Source
KafkaCluster.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaCluster
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaCluster(kafkaParams: Map[String, String])

    Permalink

    kafkaParams

    Kafka configuration parameters. Requires "metadata.broker.list" or "bootstrap.servers" to be set with Kafka broker(s), NOT zookeeper servers, specified in host1:port1,host2:port2 form

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def config: SimpleConsumerConfig

    Permalink
  7. def connect(host: String, port: Int): SimpleConsumer

    Permalink
  8. def connectLeader(topic: String, partition: Int): Either[Err, SimpleConsumer]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def findLeader(topic: String, partition: Int): Either[Err, (String, Int)]

    Permalink
  13. def findLeaders(topicAndPartitions: Set[TopicAndPartition]): Either[Err, Map[TopicAndPartition, (String, Int)]]

    Permalink
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getConsumerOffsetMetadata(groupId: String, topicAndPartitions: Set[TopicAndPartition], consumerApiVersion: Short): Either[Err, Map[TopicAndPartition, OffsetMetadataAndError]]

    Permalink
  16. def getConsumerOffsetMetadata(groupId: String, topicAndPartitions: Set[TopicAndPartition]): Either[Err, Map[TopicAndPartition, OffsetMetadataAndError]]

    Permalink

    Requires Kafka 0.8.1.1 or later.

    Requires Kafka 0.8.1.1 or later. Defaults to the original ZooKeeper backed API version.

  17. def getConsumerOffsets(groupId: String, topicAndPartitions: Set[TopicAndPartition], consumerApiVersion: Short): Either[Err, Map[TopicAndPartition, Long]]

    Permalink
  18. def getConsumerOffsets(groupId: String, topicAndPartitions: Set[TopicAndPartition]): Either[Err, Map[TopicAndPartition, Long]]

    Permalink

    Requires Kafka 0.8.1.1 or later.

    Requires Kafka 0.8.1.1 or later. Defaults to the original ZooKeeper backed API version.

  19. def getEarliestLeaderOffsets(topicAndPartitions: Set[TopicAndPartition]): Either[Err, Map[TopicAndPartition, LeaderOffset]]

    Permalink
  20. def getLatestLeaderOffsets(topicAndPartitions: Set[TopicAndPartition]): Either[Err, Map[TopicAndPartition, LeaderOffset]]

    Permalink
  21. def getLeaderOffsets(topicAndPartitions: Set[TopicAndPartition], before: Long, maxNumOffsets: Int): Either[Err, Map[TopicAndPartition, Seq[LeaderOffset]]]

    Permalink
  22. def getLeaderOffsets(topicAndPartitions: Set[TopicAndPartition], before: Long): Either[Err, Map[TopicAndPartition, LeaderOffset]]

    Permalink
  23. def getPartitionMetadata(topics: Set[String]): Either[Err, Set[TopicMetadata]]

    Permalink
  24. def getPartitions(topics: Set[String]): Either[Err, Set[TopicAndPartition]]

    Permalink
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val kafkaParams: Map[String, String]

    Permalink

    Kafka configuration parameters.

    Kafka configuration parameters. Requires "metadata.broker.list" or "bootstrap.servers" to be set with Kafka broker(s), NOT zookeeper servers, specified in host1:port1,host2:port2 form

  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def setConsumerOffsetMetadata(groupId: String, metadata: Map[TopicAndPartition, OffsetAndMetadata], consumerApiVersion: Short): Either[Err, Map[TopicAndPartition, Short]]

    Permalink
  32. def setConsumerOffsetMetadata(groupId: String, metadata: Map[TopicAndPartition, OffsetAndMetadata]): Either[Err, Map[TopicAndPartition, Short]]

    Permalink

    Requires Kafka 0.8.1.1 or later.

    Requires Kafka 0.8.1.1 or later. Defaults to the original ZooKeeper backed API version.

  33. def setConsumerOffsets(groupId: String, offsets: Map[TopicAndPartition, Long], consumerApiVersion: Short): Either[Err, Map[TopicAndPartition, Short]]

    Permalink
  34. def setConsumerOffsets(groupId: String, offsets: Map[TopicAndPartition, Long]): Either[Err, Map[TopicAndPartition, Short]]

    Permalink

    Requires Kafka 0.8.1.1 or later.

    Requires Kafka 0.8.1.1 or later. Defaults to the original ZooKeeper backed API version.

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped