Repository: spark
Updated Branches:
  refs/heads/master 8cc70e7e1 -> b81ee0b46


Typo error in KafkaWordCount example

topicpMap to topicMap

Author: Gaspar Munoz <[email protected]>

Closes #2614 from gasparms/patch-1 and squashes the following commits:

00aab2c [Gaspar Munoz] Typo error in KafkaWordCount example


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b81ee0b4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b81ee0b4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b81ee0b4

Branch: refs/heads/master
Commit: b81ee0b46d63c2122b88941696654100fd736942
Parents: 8cc70e7
Author: Gaspar Munoz <[email protected]>
Authored: Wed Oct 1 13:47:22 2014 -0700
Committer: Tathagata Das <[email protected]>
Committed: Wed Oct 1 13:47:22 2014 -0700

----------------------------------------------------------------------
 .../org/apache/spark/examples/streaming/KafkaWordCount.scala     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b81ee0b4/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala
----------------------------------------------------------------------
diff --git 
a/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala
 
b/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala
index 566ba6f..c9e1511 100644
--- 
a/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala
+++ 
b/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala
@@ -53,8 +53,8 @@ object KafkaWordCount {
     val ssc =  new StreamingContext(sparkConf, Seconds(2))
     ssc.checkpoint("checkpoint")
 
-    val topicpMap = topics.split(",").map((_,numThreads.toInt)).toMap
-    val lines = KafkaUtils.createStream(ssc, zkQuorum, group, 
topicpMap).map(_._2)
+    val topicMap = topics.split(",").map((_,numThreads.toInt)).toMap
+    val lines = KafkaUtils.createStream(ssc, zkQuorum, group, 
topicMap).map(_._2)
     val words = lines.flatMap(_.split(" "))
     val wordCounts = words.map(x => (x, 1L))
       .reduceByKeyAndWindow(_ + _, _ - _, Minutes(10), Seconds(2), 2)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to