Repository: spark
Updated Branches:
  refs/heads/master f16b7b031 -> 55b1b32dc


[GraphX] Improve LiveJournalPageRank example

1. Removed unnecessary import
2. Modified usage print since user must specify the --numEPart parameter as it 
is required in Analytics.main

Author: Jacky Li <jacky.li...@huawei.com>

Closes #4917 from jackylk/import and squashes the following commits:

6c07682 [Jacky Li] fix comment
c0df8f2 [Jacky Li] fix scalastyle
b6235e6 [Jacky Li] fix for comment
87be83b [Jacky Li] remove default value description
5caae76 [Jacky Li] remove import and modify usage


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

Branch: refs/heads/master
Commit: 55b1b32dc8b9b25deea8e5864b53fe802bb92741
Parents: f16b7b0
Author: Jacky Li <jacky.li...@huawei.com>
Authored: Sun Mar 8 19:47:35 2015 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Sun Mar 8 19:47:35 2015 +0000

----------------------------------------------------------------------
 .../apache/spark/examples/graphx/LiveJournalPageRank.scala  | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/55b1b32d/examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala
----------------------------------------------------------------------
diff --git 
a/examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala
 
b/examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala
index e809a65..f6f8d9f 100644
--- 
a/examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala
+++ 
b/examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala
@@ -17,11 +17,6 @@
 
 package org.apache.spark.examples.graphx
 
-import org.apache.spark.SparkContext._
-import org.apache.spark._
-import org.apache.spark.graphx._
-
-
 /**
  * Uses GraphX to run PageRank on a LiveJournal social network graph. Download 
the dataset from
  * http://snap.stanford.edu/data/soc-LiveJournal1.html.
@@ -31,13 +26,13 @@ object LiveJournalPageRank {
     if (args.length < 1) {
       System.err.println(
         "Usage: LiveJournalPageRank <edge_list_file>\n" +
+          "    --numEPart=<num_edge_partitions>\n" +
+          "        The number of partitions for the graph's edge RDD.\n" +
           "    [--tol=<tolerance>]\n" +
           "        The tolerance allowed at convergence (smaller => more 
accurate). Default is " +
           "0.001.\n" +
           "    [--output=<output_file>]\n" +
           "        If specified, the file to write the ranks to.\n" +
-          "    [--numEPart=<num_edge_partitions>]\n" +
-          "        The number of partitions for the graph's edge RDD. Default 
is 4.\n" +
           "    [--partStrategy=RandomVertexCut | EdgePartition1D | 
EdgePartition2D | " +
           "CanonicalRandomVertexCut]\n" +
           "        The way edges are assigned to edge partitions. Default is 
RandomVertexCut.")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to