You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Matthew Barrett (JIRA)" <ji...@apache.org> on 2015/06/16 15:19:00 UTC

[jira] [Closed] (SPARK-8396) GraphLoader.edgeListFile does not populate Graph.vertices.

     [ https://issues.apache.org/jira/browse/SPARK-8396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Barrett closed SPARK-8396.
----------------------------------
    Resolution: Fixed

> GraphLoader.edgeListFile does not populate Graph.vertices.
> ----------------------------------------------------------
>
>                 Key: SPARK-8396
>                 URL: https://issues.apache.org/jira/browse/SPARK-8396
>             Project: Spark
>          Issue Type: Bug
>          Components: GraphX
>    Affects Versions: 1.4.0
>         Environment: Mac OS X.  Spark-1.4.0 pre-compiled binary for Hadoop-2.4.0-bin.
>            Reporter: Matthew Barrett
>            Priority: Minor
>              Labels: easyfix, newbie
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> With input data like this
> 18090 31237
> 31237 31225
> 31225 31285
> 31285 31200
> 31200 31197
> 31197 31195
> 31195 31346
> 31346 54013
> 54013 31256
> 31256 23121
> The code 
> val graph : Graph[Int, Int] = GraphLoader.edgeListFile(sc, hdfsNode + "/data/misc/Sample_DirectedGraphData.ssv")
> graph.vertices.foreach{println}
> graph.vertices.foreach{vertex: (VertexId, Int) => println(vertex._1.toString + " *** " + vertex._2.toString)}
> prints nothing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org