Skip to content

Commit

Permalink
[EXAMPLE][MINOR] Add missing awaitTermination in click stream example
Browse files Browse the repository at this point in the history
Author: jerryshao <[email protected]>

Closes apache#9730 from jerryshao/clickstream-fix.
  • Loading branch information
jerryshao authored and Andrew Or committed Nov 17, 2015
1 parent 33a0ec9 commit bd10eb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// scalastyle:off println
package org.apache.spark.examples.streaming.clickstream

import org.apache.spark.SparkContext._
import org.apache.spark.streaming.{Seconds, StreamingContext}
import org.apache.spark.examples.streaming.StreamingExamples
// scalastyle:off
Expand Down Expand Up @@ -88,7 +87,7 @@ object PageViewStream {

// An external dataset we want to join to this stream
val userList = ssc.sparkContext.parallelize(
Map(1 -> "Patrick Wendell", 2->"Reynold Xin", 3->"Matei Zaharia").toSeq)
Map(1 -> "Patrick Wendell", 2 -> "Reynold Xin", 3 -> "Matei Zaharia").toSeq)

metric match {
case "pageCounts" => pageCounts.print()
Expand All @@ -106,6 +105,7 @@ object PageViewStream {
}

ssc.start()
ssc.awaitTermination()
}
}
// scalastyle:on println

0 comments on commit bd10eb8

Please sign in to comment.