Skip to content

Commit 019ef38

Browse files
committed
WIP
1 parent 1934726 commit 019ef38

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/src/main/python/streaming/test_oprations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515

1616
lines = ssc.socketTextStream(sys.argv[1], int(sys.argv[2]))
1717
words = lines.flatMap(lambda line: line.split(" "))
18+
# ssc.checkpoint("checkpoint")
1819
mapped_words = words.map(lambda word: (word, 1))
1920
count = mapped_words.reduceByKey(add)
2021

2122
count.pyprint()
2223
ssc.start()
23-
# ssc.awaitTermination()
24-
ssc.stop()
24+
ssc.awaitTermination()
25+
# ssc.stop()

python/pyspark/streaming/dstream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def saveAsTextFile(rdd, time):
419419
# TODO: implemtnt rightOuterJoin
420420

421421

422+
422423
class PipelinedDStream(DStream):
423424
def __init__(self, prev, func, preservesPartitioning=False):
424425
if not isinstance(prev, PipelinedDStream) or not prev._is_pipelinable():

0 commit comments

Comments
 (0)