Hi Andro,

Not sure if it helps -- maybe you can try to change the "-of " to "-vof "
on your command line. (i.e, the option flag in front of your
org.apache.giraph.io.formats.IdWithValueTextOutputFormat).

Wei



From:   Andro Bermúdez Serrano <andro.bermu...@gmail.com>
To:     user@giraph.apache.org,
Date:   10/09/2013 02:45 PM
Subject:        Running the example in
            http://giraph.apache.org/quick_start.html



I am new with Giraph and I am willing to using it in my project. I am
using hadoop 1.2.1.
I builded giraph with mvn package -Phadoop_1.0
-Dhadoop.version=1.2.1 -DskipTests --offline. I ran the
SimpleShortestPathsVertex example and all OK. With the same input I
tried the SimplePageRankVertex example and failed:

This is the command I used:
$HADOOP_HOME/bin/hadoop jar
$GIRAPH_HOME/giraph-examples/target/giraph-examples-1.0.0-for-hadoop-1.2.1-jar-with-dependencies.jar

org.apache.giraph.GiraphRunner
org.apache.giraph.examples.SimplePageRankVertex -vif
org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
-vip /user/andro/input/tiny_graph.txt -of
org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op
/user/andro/output/pagerank -w 1

This is the output:
13/10/09 14:21:36 INFO utils.ConfigurationUtils: No edge input format
specified. Ensure your InputFormat does not require one.
13/10/09 14:21:36 WARN job.GiraphConfigurationValidator: Output format
vertex index type is not known
13/10/09 14:21:36 WARN job.GiraphConfigurationValidator: Output format
vertex value type is not known
13/10/09 14:21:36 WARN job.GiraphConfigurationValidator: Output format
edge value type is not known
13/10/09 14:21:36 INFO job.GiraphJob: run: Since checkpointing is
disabled (default), do not allow any task retries (setting
mapred.map.max.attempts = 0, old value = 4)
13/10/09 14:21:37 INFO mapred.JobClient: Running job: job_201310091401_0002
13/10/09 14:21:38 INFO mapred.JobClient:  map 0% reduce 0%
13/10/09 14:21:52 INFO mapred.JobClient:  map 50% reduce 0%
13/10/09 14:21:58 INFO mapred.JobClient:  map 100% reduce 0%
13/10/09 14:21:59 INFO mapred.JobClient:  map 50% reduce 0%
13/10/09 14:32:01 INFO mapred.JobClient:  map 0% reduce 0%
13/10/09 14:32:02 INFO mapred.JobClient: Job complete:
job_201310091401_0002
13/10/09 14:32:02 INFO mapred.JobClient: Counters: 6
13/10/09 14:32:02 INFO mapred.JobClient:   Job Counters
13/10/09 14:32:02 INFO mapred.JobClient:     SLOTS_MILLIS_MAPS=622821
13/10/09 14:32:02 INFO mapred.JobClient:     Total time spent by all
reduces waiting after reserving slots (ms)=0
13/10/09 14:32:02 INFO mapred.JobClient:     Total time spent by all
maps waiting after reserving slots (ms)=0
13/10/09 14:32:02 INFO mapred.JobClient:     Launched map tasks=2
13/10/09 14:32:02 INFO mapred.JobClient:     SLOTS_MILLIS_REDUCES=0
13/10/09 14:32:02 INFO mapred.JobClient:     Failed map tasks=1


I appreciate any help. Maybe I did it wrong.
Andro.

<<inline: graycol.gif>>

Reply via email to