Skip to content

Commit

Permalink
changed for SCCallSiteSync
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Sep 21, 2014
1 parent e685853 commit 5cdb6fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent</artifactId>
<<<<<<< HEAD
<version>1.2.0-SNAPSHOT</version>
=======
<version>1.1.0-SNAPSHOT</version>
>>>>>>> modified the code base on comment in https://github.com/tdas/spark/pull/10
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
5 changes: 2 additions & 3 deletions python/pyspark/streaming/dstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
from pyspark.serializers import NoOpSerializer,\
BatchedSerializer, CloudPickleSerializer, pack_long,\
CompressedSerializer
from pyspark.rdd import _JavaStackTrace
from pyspark.storagelevel import StorageLevel
from pyspark.resultiterable import ResultIterable
from pyspark.streaming.util import rddToFileName, RDDFunction

from pyspark.traceback_utils import SCCallSiteSync

from py4j.java_collections import ListConverter, MapConverter

Expand Down Expand Up @@ -187,7 +186,7 @@ def add_shuffle_key(split, iterator):
yield outputSerializer.dumps(items)
keyed = PipelinedDStream(self, add_shuffle_key)
keyed._bypass_serializer = True
with _JavaStackTrace(self.ctx) as st:
with SCCallSiteSync(self.context) as css:
partitioner = self.ctx._jvm.PythonPartitioner(numPartitions,
id(partitionFunc))
jdstream = self.ctx._jvm.PythonPairwiseDStream(keyed._jdstream.dstream(),
Expand Down

0 comments on commit 5cdb6fa

Please sign in to comment.