From 5bfeb9bc491c4b40eae52b4ba2930b84f42df68c Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Sat, 20 Sep 2014 12:51:49 +0200 Subject: [PATCH] Fix Java example in Streaming Programming Guide "val conf" was used instead of "SparkConf conf" in Java snippet. --- docs/streaming-programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/streaming-programming-guide.md b/docs/streaming-programming-guide.md index 41f170580f452..5c21e912ea160 100644 --- a/docs/streaming-programming-guide.md +++ b/docs/streaming-programming-guide.md @@ -138,7 +138,7 @@ import org.apache.spark.streaming.api.java.*; import scala.Tuple2; // Create a local StreamingContext with two working thread and batch interval of 1 second -val conf = new SparkConf().setMaster("local[2]").setAppName("NetworkWordCount") +SparkConf conf = new SparkConf().setMaster("local[2]").setAppName("NetworkWordCount") JavaStreamingContext jssc = new JavaStreamingContext(conf, new Duration(1000)) {% endhighlight %}