Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix style issue
  • Loading branch information
jerryshao committed Nov 27, 2015
commit bfae0ab21c75eefcee2bb276ec152cfdfb2a4228
2 changes: 2 additions & 0 deletions python/pyspark/streaming/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,7 @@ def test_kafka_direct_stream_transform_with_checkpoint(self):
self._kafkaTestUtils.sendMessages(topic, sendData)

offsetRanges = []

def transformWithOffsetRanges(rdd):
for o in rdd.offsetRanges():
offsetRanges.append(o)
Expand All @@ -1169,6 +1170,7 @@ def transformWithOffsetRanges(rdd):
self.ssc.stop(False)
self.ssc = None
tmpdir = "checkpoint-test-%d" % random.randint(0, 10000)

def setup():
ssc = StreamingContext(self.sc, 0.5)
ssc.checkpoint(tmpdir)
Expand Down