giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoît Denis <benoit.denis...@gmail.com>
Subject Re: Issue with GiraphTypeValidator
Date Wed, 23 Jan 2013 09:19:29 GMT
they all come from the examples package


2013/1/23 Eli Reisman <apache.mailbox@gmail.com>

> are these IO formats in the exaples package, or io package?
>
>
> On Sun, Jan 20, 2013 at 2:01 PM, Benoît Denis <benoit.denis.ph@gmail.com>wrote:
>
>> Hello,
>>
>> I am a very new user of Giraph, I have currently an issue with a
>> NullPointerException, but I am not sure if I did an error or if it is a
>> real bug.
>>
>> I am trying to make this command work : hadoop jar
>> giraph-0.2-SNAPSHOT-for-hadoop-1.0.2-jar-with-dependencies.jar
>> org.apache.giraph.GiraphRunner org.apache.giraph.examples.IdentityVertex
>> -vif org.apache.giraph.examples.LongDoubleFloatDoubleTextInputFormat -vip
>> graph1 -op graphout -of
>> org.apache.giraph.examples.SimpleTextVertexOutputFormat -w 3
>>
>> (with graph1 being a small text file containing a little graph that I
>> correctly loaded into HDFS)
>>
>> This is not supposed to do a lot, but it does not work... I get this (I
>> added some log instructions) :
>>
>> 13/01/20 22:45:37 DEBUG giraph.GiraphRunner: Attempting to run Vertex:
>> org.apache.giraph.examples.IdentityVertex
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: vertexClass : class
>> org.apache.giraph.examples.IdentityVertex
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: list size : 4
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: index 0 : null
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: index 1 : null
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: index 2 : null
>> 13/01/20 22:45:38 DEBUG graph.GiraphTypeValidator: index 3 : null
>> Exception in thread "main" java.lang.NullPointerException
>>  at
>> org.apache.giraph.graph.GiraphTypeValidator.validateClassTypes(GiraphTypeValidator.java:111)
>> at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:279)
>>  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:294)
>> 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:616)
>> at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
>>
>> The exception comes from this line (in GiraphTypeValidator) :
>> else if (!vertexIndexType.equals(classList.get(ID_PARAM_INDEX))) {
>>
>> with vertexIndexType being null. As you can see in the logs, I
>> investigate, and I found that
>> List<Class<?>> classList = ReflectionUtils.getTypeArguments(
>>       Vertex.class, vertexClass);
>>
>> makes classList a List with size 4, but all entries are null !
>>
>> Do you have an idea how to solve this ?
>>
>> Thanks in advance !
>>
>> Benoît Denis
>>
>>
>

Mime
View raw message