Repository: spark
Updated Branches:
  refs/heads/master f80dcf2ae -> 07e439b4f


[GraphX] Modify option name according to example doc in SynthBenchmark

Now graphx.SynthBenchmark example has an option of iteration number named as 
"niter". However, in its document, it is named as "niters". The mismatch 
between the implementation and document causes certain IllegalArgumentException 
while trying that example.

Author: Grace <[email protected]>

Closes #2888 from GraceH/synthbenchmark and squashes the following commits:

f101ee1 [Grace] Modify option name according to example doc


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/07e439b4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/07e439b4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/07e439b4

Branch: refs/heads/master
Commit: 07e439b4fe1cea4cee8ec8e39803b8349078f119
Parents: f80dcf2
Author: Grace <[email protected]>
Authored: Fri Oct 24 13:48:08 2014 -0700
Committer: Ankur Dave <[email protected]>
Committed: Fri Oct 24 13:48:08 2014 -0700

----------------------------------------------------------------------
 .../scala/org/apache/spark/examples/graphx/SynthBenchmark.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/07e439b4/examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala
----------------------------------------------------------------------
diff --git 
a/examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala 
b/examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala
index 0567602..3ec20d5 100644
--- 
a/examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala
+++ 
b/examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala
@@ -67,7 +67,7 @@ object SynthBenchmark {
 
     options.foreach {
       case ("app", v) => app = v
-      case ("niter", v) => niter = v.toInt
+      case ("niters", v) => niter = v.toInt
       case ("nverts", v) => numVertices = v.toInt
       case ("numEPart", v) => numEPart = Some(v.toInt)
       case ("partStrategy", v) => partitionStrategy = 
Some(PartitionStrategy.fromString(v))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to