Skip to content

Commit

Permalink
Remove close() for streaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Mar 8, 2016
1 parent 03ac28c commit cdb6077
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,5 @@ public Integer call(Integer i1, Integer i2) {

jssc.start();
jssc.awaitTermination();
jssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public Integer call(Integer i1, Integer i2) {
wordCounts.print();
ssc.start();
ssc.awaitTermination();
ssc.close();
}

// ============= Receiver code that receives data over a socket ==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ public Integer call(Integer i1, Integer i2) {
// Start the computation
jssc.start();
jssc.awaitTermination();
jssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@ public String call(Long in) {

ssc.start();
ssc.awaitTermination();
ssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,5 @@ public Integer call(Integer i1, Integer i2) {
wordCounts.print();
jssc.start();
jssc.awaitTermination();
jssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,5 @@ public Integer call(Integer i1, Integer i2) {
reducedStream.print();
ssc.start();
ssc.awaitTermination();
ssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,5 @@ public JavaStreamingContext call() {
JavaStreamingContext ssc = JavaStreamingContext.getOrCreate(checkpointDirectory, createContextFunc);
ssc.start();
ssc.awaitTermination();
ssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ public JavaRecord call(String word) {

ssc.start();
ssc.awaitTermination();
ssc.close();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,5 @@ public Tuple2<String, Integer> call(String word, Optional<Integer> one, State<In
stateDstream.print();
ssc.start();
ssc.awaitTermination();
ssc.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,5 @@ public void call(JavaPairRDD<Double, String> happinessTopicPairs) {

jssc.start();
jssc.awaitTermination();
jssc.close();
}
}

0 comments on commit cdb6077

Please sign in to comment.