We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e838a25 commit de06128Copy full SHA for de06128
examples/src/main/scala/org/apache/spark/examples/SparkPageRank.scala
@@ -51,7 +51,7 @@ object SparkPageRank {
51
showWarning()
52
53
val sparkConf = new SparkConf().setAppName("PageRank")
54
- val iters = if (args.length > 0) args(1).toInt else 10
+ val iters = if (args.length > 1) args(1).toInt else 10
55
val ctx = new SparkContext(sparkConf)
56
val lines = ctx.textFile(args(0), 1)
57
val links = lines.map{ s =>
0 commit comments