giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Presta <>
Subject Re: Edge value types don't match
Date Fri, 17 May 2013 16:52:46 GMT
This looks like a bug.
I assume you're using a VertexValueInputFormat, which is really a
VertexInputFormat with E = Writable.
The problem is that we're checking that against the E parameter in Vertex,
which is NullWritable.
VertexValueInputFormat was modified after GiraphTypeValidator was created,
and this didn't get caught.
Thanks for reporting, I'll file a JIRA now.

On 5/17/13 2:17 AM, "Ahmet Emre Alada─č" <> wrote:

>I'm trying to implement LinkRank in Giraph. For now, I started with a
>copy of PageRank example and trying to run and improve it.
>My VertexInputFormat: Text Float
>My EdgeInputFormat: Text Text
>where Text are URLs and Float is the LinkRank score.
>Now I'm getting a type mismatch error (below). I could not find the
>source of the mismatch. When does one get this error? I'm defining the
>edge weights as NullWritable and Messages as FloatWritable. Here it says
>at one location I have NullWritable and some place Writable. But I can't
>see it.
>My source code is:
>[emre@localhost giraph-agmlab]$ hadoop jar
>org.apache.giraph.examples.LinkRank.LinkRankVertex -vif
>org.apache.giraph.examples.LinkRank.LinkRankVertexInputFormat -eif
>org.apache.giraph.examples.LinkRank.LinkRankEdgeInputFormat -of
>org.apache.giraph.examples.LinkRank.LinkRankVertexOutputFormat -w 1 -vip
>nodes.txt -eip edges.txt -op linkOutput4
>Exception in thread "main" java.lang.IllegalArgumentException:
>checkClassTypes: Edge value types don't match, vertex - class
>, vertex input format - interface
>         at 
>         at 
>         at 
>         at
>         at
>         at
>         at org.apache.giraph.GiraphRunner.main(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
>         at 
>         at java.lang.reflect.Method.invoke(
>         at org.apache.hadoop.util.RunJar.main(

View raw message