Skip to content

Commit

Permalink
added StreamingContext.sparkContext
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Aug 31, 2014
1 parent da09768 commit f5bfb70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pyspark/streaming/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def clean_up_handler(*args):
for sig in (SIGINT, SIGTERM):
signal(sig, clean_up_handler)

@property
def sparkContext(self):
return self._sc

def start(self):
"""
Start the execution of the streams.
Expand Down

0 comments on commit f5bfb70

Please sign in to comment.