Permalink
Browse files

Fix argv handling in Python transitive closure example

  • Loading branch information...
1 parent 2be2295 commit 20604001e280a445d7c25bac6eb31b1f0512c20f @jey jey committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/examples/transitive_closure.py
@@ -24,7 +24,7 @@ def generateGraph():
"Usage: PythonTC <master> [<slices>]"
exit(-1)
sc = SparkContext(sys.argv[1], "PythonTC")
- slices = sys.argv[2] if len(sys.argv) > 2 else 2
+ slices = int(sys.argv[2]) if len(sys.argv) > 2 else 2
tc = sc.parallelize(generateGraph(), slices).cache()
# Linear transitive closure: each round grows paths by one edge,

0 comments on commit 2060400

Please sign in to comment.