Skip to content

Commit

Permalink
change test case not to use awaitTermination
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Sep 20, 2014
1 parent e80647e commit c00e091
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions python/pyspark/streaming/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def start(self):
def awaitTermination(self, timeout=None):
"""
Wait for the execution to stop.
@param timeout: time to wait in milliseconds
"""
if timeout is None:
self._jssc.awaitTermination()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ class PythonForeachDStream(
this.register()
}

/*
This does not work. Ignore this for now. -TD
class PythonTransformedDStream(
prev: DStream[Array[Byte]],
transformFunction: PythonRDDFunction
Expand All @@ -204,7 +202,6 @@ class PythonTransformedDStream(
val asJavaDStream = JavaDStream.fromDStream(this)
//val asJavaPairDStream : JavaPairDStream[Long, Array[Byte]] = JavaPairDStream.fromJavaDStream(this)
}
*/

/**
* This is a input stream just for the unitest. This is equivalent to a checkpointable,
Expand Down

0 comments on commit c00e091

Please sign in to comment.