Skip to content

Commit 55b1b32

Browse files
Jacky Lisrowen
authored andcommitted
[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 <[email protected]> Closes apache#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
1 parent f16b7b0 commit 55b1b32

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/src/main/scala/org/apache/spark/examples/graphx/LiveJournalPageRank.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717

1818
package org.apache.spark.examples.graphx
1919

20-
import org.apache.spark.SparkContext._
21-
import org.apache.spark._
22-
import org.apache.spark.graphx._
23-
24-
2520
/**
2621
* Uses GraphX to run PageRank on a LiveJournal social network graph. Download the dataset from
2722
* http://snap.stanford.edu/data/soc-LiveJournal1.html.
@@ -31,13 +26,13 @@ object LiveJournalPageRank {
3126
if (args.length < 1) {
3227
System.err.println(
3328
"Usage: LiveJournalPageRank <edge_list_file>\n" +
29+
" --numEPart=<num_edge_partitions>\n" +
30+
" The number of partitions for the graph's edge RDD.\n" +
3431
" [--tol=<tolerance>]\n" +
3532
" The tolerance allowed at convergence (smaller => more accurate). Default is " +
3633
"0.001.\n" +
3734
" [--output=<output_file>]\n" +
3835
" If specified, the file to write the ranks to.\n" +
39-
" [--numEPart=<num_edge_partitions>]\n" +
40-
" The number of partitions for the graph's edge RDD. Default is 4.\n" +
4136
" [--partStrategy=RandomVertexCut | EdgePartition1D | EdgePartition2D | " +
4237
"CanonicalRandomVertexCut]\n" +
4338
" The way edges are assigned to edge partitions. Default is RandomVertexCut.")

0 commit comments

Comments
 (0)