giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio Martella <claudio.marte...@gmail.com>
Subject Re: SimpleShortestPathsComputation with Edge List input file
Date Mon, 03 Jun 2013 00:05:19 GMT
Hi Peter,

shortly, those are abstract classes, that's why you cannot instantiate
them. You'll have to use a specific class extending those classes that are
aware of the types of the signature of the vertex (I, V, E, M). check out
some classes in the format package that have those types in the class name.


On Mon, Jun 3, 2013 at 1:25 AM, Peter Holland <d99991048@mydit.ie> wrote:

> Hello,
> I'm new to Giraph and I'm trying to run SimpleShortestPathsComputation
> using an edge list input file. I have some questions and and error message
> that hopefully I can get some help with.
>
> Edge List File Format
> What is the correct format for an edge list input file?
> I have a .tsv file with a vertex represented as an integer. Is this
> correct?
>
> 5 11
> 1 6
> 6 9
> 6 8
> 8 9
> .....
>
> Input File Class:
> Is org.apache.giraph.io.formats.*TextEdgeInputFormat *the only input
> format that can be used for edge lists?
>
> Output File Class:
> Does the output format depend on the job you are running? I have been
> using org.apache.giraph.io.formats.*TextVertexOutputFormat* for
> SimpleShortestPathsComputation.
>
> Run Command:
> So this is the command I am using to try to run the
> SimpleShortestPathsComputation using an edge list input file.
>
> *bin/hadoop jar
> /home/ubuntu/giraph/giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-1.0.2-jar-with-dependencies.jar
> org.apache.giraph.GiraphRunner
> org.apache.giraph.examples.SimpleShortestPathsComputation *
> *-eif org.apache.giraph.io.formats.TextEdgeInputFormat *
> *-eip /simpleEdgeList/SimpleEdgeList.tsv *
> *-of org.apache.giraph.io.formats.TextVertexOutputFormat *
> *-op /outShortest*
> *-w 3*
>
> Error Message
> When I run the above command I get the following error message:
> Exception in thread "main" java.lang.IllegalStateException: newInstance:
> Couldn't instantiate org.apache.giraph.io.formats.TextVertexOutputFormat
>
> Thank you,
> Peter
>



-- 
   Claudio Martella
   claudio.martella@gmail.com

Mime
View raw message