Try VertexWithDoubleValueNullEdgeTextOutputFormat like output format. The
rank of the vertex is a double .
Il giorno 09/ott/2013 20:44, "Andro Bermúdez Serrano" <
[email protected]> ha scritto:

> 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.
>

Reply via email to