giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabrizio silvestri <fabrizio.silves...@isti.cnr.it>
Subject A very newbie question about VertexInputFormat and VertexOutputFormat
Date Thu, 06 Sep 2012 08:00:31 GMT
Hello Everybody,

I'm very new to giraph and I would like to run some toy example before
trying to add my parts of code. In particular I would like to run a
PageRank computation on a toy graph stored on a text file with a
format that is compatible with
org.apache.giraph.io.IntIntNullIntTextInputFormat

When run with

hadoop jar giraph-0.2-SNAPSHOT-for-hadoop-0.20.203.0-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner \
    org.apache.giraph.examples.SimplePageRankVertex -w 1 \
    -if org.apache.giraph.io.IntIntNullIntTextInputFormat \
    -of org.apache.giraph.io.IdWithValueTextOutputFormat


I got the following error:

12/09/06 09:59:24 INFO giraph.GiraphRunner: No input path specified.
Ensure your InputFormat does not require one.
12/09/06 09:59:24 INFO giraph.GiraphRunner: No output path specified.
Ensure your OutputFormat does not require one.
Exception in thread "main" java.lang.IllegalArgumentException:
checkClassTypes: Vertex index types don't match, vertex - class
org.apache.hadoop.io.LongWritable, vertex input format - class
org.apache.hadoop.io.IntWritable
	at org.apache.giraph.graph.GiraphTypeValidator.verifyVertexInputFormatGenericTypes(GiraphTypeValidator.java:116)
	at org.apache.giraph.graph.GiraphTypeValidator.validateClassTypes(GiraphTypeValidator.java:100)
	at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:231)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.giraph.GiraphRunner.main(GiraphRunner.java:247)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

I know this might sound stupid... but... I'm really stuck, here! :)

Is there any OuputFormat compatible with IntIntNullIntTextInputFormat?

Thanks in advance
f

Mime
View raw message