Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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