Skip to content

Commit

Permalink
[GraphX] Improve LiveJournalPageRank example
Browse files Browse the repository at this point in the history
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.likun@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
  • Loading branch information
jackylk authored and srowen committed Mar 8, 2015
1 parent f16b7b0 commit 55b1b32
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.")
Expand Down

0 comments on commit 55b1b32

Please sign in to comment.