Skip to content

Commit

Permalink
In GraphLoader, coalesce to minEdgePartitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdave committed Apr 26, 2014
1 parent 2898126 commit ad4c874
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object GraphLoader extends Logging {
val startTime = System.currentTimeMillis

// Parse the edge data table directly into edge partitions
val edges = sc.textFile(path, minEdgePartitions).mapPartitionsWithIndex { (pid, iter) =>
val edges = sc.textFile(path, minEdgePartitions).coalesce(minEdgePartitions).mapPartitionsWithIndex { (pid, iter) =>
val builder = new EdgePartitionBuilder[Int]
iter.foreach { line =>
if (!line.isEmpty && line(0) != '#') {
Expand Down

0 comments on commit ad4c874

Please sign in to comment.