You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Ghufran Malik <gh...@gmail.com> on 2014/02/15 13:25:13 UTC

SimpleShortestPathsVertex: Output Format Code Not Recognised.

Hello I am a beginner with Apache Giraph and am using Apache Giraph 1.0.0
with Hadoop 0.20.203.0. I am having trouble running the
SimpleShortestPathsVertex example. When running the following command:

 

hadoop jar
/home/ghufran/Downloads/giraph-folder/giraph-1.0.0/giraph-examples/target/gi
raph-examples-1.0.0-for-hadoop-0.20.203.0-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner
org.apache.giraph.examples.SimpleShortestPathsVertex -vif
org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat -vip
/user/ghufran/input/input-json -of
org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op
/user/ghufran/output1 -w 1

 

The map job fails giving me the following output:

 

14/02/13 20:16:13 INFO utils.ConfigurationUtils: No edge input format
specified. Ensure your InputFormat does not require one.
14/02/13 20:16:13 WARN job.GiraphConfigurationValidator: Output format
vertex index type is not known
14/02/13 20:16:13 WARN job.GiraphConfigurationValidator: Output format
vertex value type is not known
14/02/13 20:16:13 WARN job.GiraphConfigurationValidator: Output format edge
value type is not known
14/02/13 20:16:13 INFO job.GiraphJob: run: Since checkpointing is disabled
(default), do not allow any task retries (setting mapred.map.max.attempts =
0, old value = 4)

 

14/02/13 18:51:14 INFO mapred.JobClient: Running job: job_201402131818_0004
14/02/13 18:51:15 INFO mapred.JobClient: map 0% reduce 0%
14/02/13 18:51:33 INFO mapred.JobClient: map 50% reduce 0%
14/02/13 18:54:18 INFO mapred.JobClient: map 0% reduce 0%
14/02/13 18:54:21 INFO mapred.JobClient: map 50% reduce 0%
14/02/13 19:05:01 INFO mapred.JobClient: map 0% reduce 0%
14/02/13 19:05:06 INFO mapred.JobClient: Job complete: job_201402131818_0004
14/02/13 19:05:06 INFO mapred.JobClient: Counters: 6
14/02/13 19:05:06 INFO mapred.JobClient: Job Counters
14/02/13 19:05:06 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=653402
14/02/13 19:05:06 INFO mapred.JobClient: Total time spent by all reduces
waiting after reserving slots (ms)=0
14/02/13 19:05:06 INFO mapred.JobClient: Total time spent by all maps
waiting after reserving slots (ms)=0
14/02/13 19:05:06 INFO mapred.JobClient: Launched map tasks=2
14/02/13 19:05:06 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=0
14/02/13 19:05:06 INFO mapred.JobClient: Failed map tasks=1

 

 

>From what I understand the output format code "-of
org.apache.giraph.io.formats.IdWithValueTextOutputFormat " is not
understood. I tried to run the command again with -vof instead of -of but I
than got an error saying that the -vof option was not recognised:

 

Exception in thread "main"
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option:
-vof
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at
org.apache.giraph.utils.ConfigurationUtils.parseArgs(ConfigurationUtils.java
:129)
at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:74)
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:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

 

Any help with this would be greatly appreciated.

 

 

Thanks in advance

 

Ghufran