You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Rekha Joshi (JIRA)" <ji...@apache.org> on 2015/04/21 01:25:59 UTC
[jira] [Commented] (GIRAPH-672) SSP example run with error result
[ https://issues.apache.org/jira/browse/GIRAPH-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503933#comment-14503933 ]
Rekha Joshi commented on GIRAPH-672:
------------------------------------
For me on latest Giraph and Yarn 2.6.0 the example provided, gives me correct output.Thanks.
$HADOOP_HOME/bin/hadoop jar $GIRAPH_HOME/giraph-examples/target/giraph-examples-1.2.0-SNAPSHOT-for-hadoop-2.6.0-jar-with-dependencies.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsComputation -vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat -vip /testing_11 -vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op /testingop_11 -w 1
Input:
[0,0,[[1,1],[3,3]]]
[1,0,[[0,1],[2,2],[3,1]]]
[2,0,[[1,2],[4,4]]]
[3,0,[[0,3],[1,1],[4,4]]]
[4,0,[[3,4],[2,4]]]
Output:
0 1.0
2 2.0
1 0.0
3 1.0
4 5.0
> SSP example run with error result
> ---------------------------------
>
> Key: GIRAPH-672
> URL: https://issues.apache.org/jira/browse/GIRAPH-672
> Project: Giraph
> Issue Type: Bug
> Components: examples
> Affects Versions: 1.0.0
> Reporter: Wang Xu
> Priority: Minor
>
> In ShortestPath example, my input data is :(just edge input data)
> 1\t\3\11
> 1\t\5\12
> I run:
> hadoop jar giraph-examples-1.0.0-for-hadoop-2.0.0-cdh4.1.2-jar-with-dependencies.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsVertex -eif org.apache.giraph.io.formats.LongFloatTextEdgeInputFormat -of org.apache.giraph.io.formats.IdWithValueTextOutputFormat -eip /shortestPathsInputGraph -op /output-tmp/sp-37 -w 1 -ca SimpleShortestPathsVertex.sourceId=1 -ca giraph.zkList=dlxa107:2181
> Result is hadoop fs -cat /output-tmp/sp-37/*)
> 5 0.0
> 1 0.0
> 3 0.0
> Then i modify input dataļ¼(just edge input data)
> 1\t\3\11
> 1\t\5\12
> 3\t\3\0
> 5\t\5\0
> correct output:
> 5 12.0
> 1 0.0
> 3 11.0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)