diff options
author | Matthew Farrellee <matt@redhat.com> | 2014-09-19 14:35:22 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@apache.org> | 2014-09-19 14:35:22 -0700 |
commit | a03e5b81e91d9d792b6a2e01d1505394ea303dd8 (patch) | |
tree | 074018184808d230a4c64805db0523ed73a34531 /examples/src/main/python/transitive_closure.py | |
parent | be0c7563ea001a59469dbba219d2a8ef5785afa3 (diff) | |
download | spark-a03e5b81e91d9d792b6a2e01d1505394ea303dd8.tar.gz spark-a03e5b81e91d9d792b6a2e01d1505394ea303dd8.tar.bz2 spark-a03e5b81e91d9d792b6a2e01d1505394ea303dd8.zip |
[SPARK-1701] [PySpark] remove slice terminology from python examples
Author: Matthew Farrellee <matt@redhat.com>
Closes #2304 from mattf/SPARK-1701-partition-over-slice-for-python-examples and squashes the following commits:
928a581 [Matthew Farrellee] [SPARK-1701] [PySpark] remove slice terminology from python examples
Diffstat (limited to 'examples/src/main/python/transitive_closure.py')
-rwxr-xr-x | examples/src/main/python/transitive_closure.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/main/python/transitive_closure.py b/examples/src/main/python/transitive_closure.py index bf331b542c..00a281bfb6 100755 --- a/examples/src/main/python/transitive_closure.py +++ b/examples/src/main/python/transitive_closure.py @@ -37,11 +37,11 @@ def generateGraph(): if __name__ == "__main__": """ - Usage: transitive_closure [slices] + Usage: transitive_closure [partitions] """ sc = SparkContext(appName="PythonTransitiveClosure") - slices = int(sys.argv[1]) if len(sys.argv) > 1 else 2 - tc = sc.parallelize(generateGraph(), slices).cache() + partitions = int(sys.argv[1]) if len(sys.argv) > 1 else 2 + tc = sc.parallelize(generateGraph(), partitions).cache() # Linear transitive closure: each round grows paths by one edge, # by joining the graph's edges with the already-discovered paths. |