com.datastax.spark.connector.demo

KafkaStreamingWordCountApp

object KafkaStreamingWordCountApp extends App with Logging with Assertions

Simple Kafka Spark Streaming demo which 1. Starts an embedded ZooKeeper server 2. Starts an embedded Kafka server 3. Creates a new topic in the Kafka broker 4. Generates messages and publishes to the Kafka broker 5. Creates a Spark Streaming Kafka input stream which pulls messages from a Kafka Broker, runs basic Spark computations on the streaming data, and writes results to Cassandra 6. Asserts expectations are met 7. Shuts down Spark, Kafka and ZooKeeper

Linear Supertypes
Assertions, Logging, App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KafkaStreamingWordCountApp
  2. Assertions
  3. Logging
  4. App
  5. DelayedInit
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def awaitCond(p: ⇒ Boolean, max: Duration, interval: Duration, message: String): Unit

    Definition Classes
    Assertions
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val conf: SparkConf

  11. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. val executionStart: Long

    Definition Classes
    App
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getSparkClassLoader: ClassLoader

    Definition Classes
    Logging
  18. val group: String

  19. def hashCode(): Int

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

    Definition Classes
    Any
  21. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. lazy val kafka: EmbeddedKafka

    Starts the Kafka broker.

  23. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  30. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. def main(args: Array[String]): Unit

    Definition Classes
    App
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def now: FiniteDuration

    Definition Classes
    Assertions
  40. val producer: KafkaProducer[String, String]

  41. def remainingOr(duration: FiniteDuration): FiniteDuration

    Definition Classes
    Assertions
  42. def remainingOrDefault: FiniteDuration

    Definition Classes
    Assertions
  43. val sc: SparkContext

  44. def shutdown(): Unit

  45. val ssc: StreamingContext

    Creates the Spark Streaming context.

  46. val stream: ReceiverInputDStream[(String, String)]

    Creates an input stream that pulls messages from a Kafka Broker.

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

    Definition Classes
    AnyRef
  48. val toKafka: (String) ⇒ Unit

  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. val topic: String

  51. def validate(): Unit

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. val words: String

Inherited from Assertions

Inherited from Logging

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped