Skip to content
Snippets Groups Projects
Commit 22e96b87 authored by Rohan Bhanderi's avatar Rohan Bhanderi Committed by Sean Owen
Browse files

Typo in comment: use 2 seconds instead of 1

Use 2 seconds batch size as duration specified in JavaStreamingContext constructor is 2000 ms

Author: Rohan Bhanderi <rohan.bhanderi@sjsu.edu>

Closes #9714 from RohanBhanderi/patch-2.
parent 9461f5ee
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ public final class JavaKafkaWordCount {
StreamingExamples.setStreamingLogLevels();
SparkConf sparkConf = new SparkConf().setAppName("JavaKafkaWordCount");
// Create the context with a 1 second batch size
// Create the context with 2 seconds batch size
JavaStreamingContext jssc = new JavaStreamingContext(sparkConf, new Duration(2000));
int numThreads = Integer.parseInt(args[3]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment