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.
This commit is contained in:
parent
9461f5ee80
commit
22e96b87fb
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue