Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove pyFiles from SparkContext construction
  • Loading branch information
andrewor14 committed May 16, 2014
commit 50f80b1856d4bbfc7a87b10cdae62e62de8083d5
2 changes: 1 addition & 1 deletion examples/src/main/python/als.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update(i, vec, mat, ratings):
"""
Usage: als [M] [U] [F] [iterations] [slices]"
"""
sc = SparkContext(appName="PythonALS", pyFiles=[realpath(__file__)])
sc = SparkContext(appName="PythonALS")
M = int(sys.argv[1]) if len(sys.argv) > 1 else 100
U = int(sys.argv[2]) if len(sys.argv) > 2 else 500
F = int(sys.argv[3]) if len(sys.argv) > 3 else 10
Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/python/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def readPointBatch(iterator):
if len(sys.argv) != 3:
print >> sys.stderr, "Usage: logistic_regression <file> <iterations>"
exit(-1)
sc = SparkContext(appName="PythonLR", pyFiles=[realpath(__file__)])
sc = SparkContext(appName="PythonLR")
points = sc.textFile(sys.argv[1]).mapPartitions(readPointBatch).cache()
iterations = int(sys.argv[2])

Expand Down