giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Agrta Rawat <agrta.ra...@gmail.com>
Subject Running Giraph-854 SimpleShortestPathsComputation
Date Thu, 27 Feb 2014 09:50:56 GMT
Hi All,

I have build Giraph for patch-854 on hadoop1.0.0. I have run the example of
SimpleShortestPathsComputation successfully but when I try to run the some
other code by following the same architecture as used in
SimpleShortestPathsComputation Example, it gives me following error-

Exception in thread "main" java.lang.RuntimeException: class MyVertexClass
not org.apache.giraph.graph.Vertex
    at org.apache.hadoop.conf.Configuration.setClass(Configuration.java:915)
    at org.apache.giraph.conf.ClassConfOption.set(ClassConfOption.java:145)
    at
org.apache.giraph.conf.GiraphConfiguration.setVertexClass(GiraphConfiguration.java:85)
    at
org.apache.giraph.utils.ConfigurationUtils.populateGiraphConfiguration(ConfigurationUtils.java:210)
    at
org.apache.giraph.utils.ConfigurationUtils.parseArgs(ConfigurationUtils.java:147)
    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)

and when I implement the Vertex Interface, it gives me following exception-


Exception in thread "main" java.lang.IncompatibleClassChangeError:
Implementing class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at
org.apache.giraph.utils.ConfigurationUtils.populateGiraphConfiguration(ConfigurationUtils.java:210)
    at
org.apache.giraph.utils.ConfigurationUtils.parseArgs(ConfigurationUtils.java:147)
    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)


Please tell me what should I do or what am I missing.

Thanks.

Mime
View raw message