Hi All!
I’m trying to process a file to giraph that looks like this (tab delimited):
tamer 0.1 john 0.2 mike 0.3
where the vertex “tamer” is a source, and has a destination link to vertices
john and mike.
Here is the command I use:
hadoop jar
giraph-examples-1.2.0-SNAPSHOT-for-hadoop-1.2.1-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner \
-libjars ${LIBJARS} org.apache.giraph.examples.SimplePageRankComputation \
-vif
org.apache.giraph.io.formats.TextDoubleDoubleAdjacencyListVertexInputFormat \
-vip /giraphinput/textinput.txt -vof
org.apache.giraph.io.formats.IdWithValueTextOutputFormat \
-op /giraphoutput/pagerank02122015-7 -w 1 -ca giraph.SplitMasterWorker=false \
-mc
org.apache.giraph.examples.SimplePageRankComputation\$SimplePageRankMasterCompute
But I get an error:
15/02/13 14:05:17 INFO utils.ConfigurationUtils: No edge input format
specified. Ensure your InputFormat does not require one.
15/02/13 14:05:17 INFO utils.ConfigurationUtils: No edge output format
specified. Ensure your OutputFormat does not require one.
15/02/13 14:05:17 INFO utils.ConfigurationUtils: Setting custom argument
[giraph.SplitMasterWorker] to [false] in GiraphConfiguration
Exception in thread "main" java.lang.IllegalArgumentException: checkClassTypes:
vertex index types not assignable, computation - class org.apache.hado
op.io.LongWritable, VertexInputFormat - class
org.apache.hadoop.io.DoubleWritable
at
org.apache.giraph.job.GiraphConfigurationValidator.checkAssignable(GiraphConfigurationValidator.java:381)
at
org.apache.giraph.job.GiraphConfigurationValidator.verifyVertexInputFormatGenericTypes(GiraphConfigurationValidator.java:226)
at
org.apache.giraph.job.GiraphConfigurationValidator.validateConfiguration(GiraphConfigurationValidator.java:141)
at
org.apache.giraph.utils.ConfigurationUtils.parseArgs(ConfigurationUtils.java:222)
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:160)
Any idea on how to fix this?
Thanks.
Tamer