JHUAPL / AccumuloGraph

An implementation of TinkerPop Blueprints using Accumulo
Apache License 2.0
33 stars 12 forks source link

can't Connect with Rexster or Java to accumulograph Library #127

Open estkae opened 8 years ago

estkae commented 8 years ago

Hallo,

I try to connect with Rexster to AccumuloGraph - Library. the blueprints-accumulo-graph-0.2.2-SNAPSHOT.jar is in the ex folder. If i start the Rester - Server then i have this issue: [WARN] GraphConfigurationContainer - GraphConfiguration could not be found or otherwise instantiated: [edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration]. Ensure that it is in Rexster's path. com.tinkerpop.rexster.config.GraphConfigurationException: GraphConfiguration could not be found or otherwise instantiated: [edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration]. Ensure that it is in Rexster's path. at com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:142) Have you an Idea? what wrong?

If i make an open with on distributed InstanceTyp then i have this Issue: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at junit.framework.TestSuite.createTest(TestSuite.java:63) at junit.framework.TestSuite.addTestMethod(TestSuite.java:310) at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153) at junit.framework.TestSuite.(TestSuite.java:132) at org.junit.internal.runners.JUnit38ClassRunner.(JUnit38ClassRunner.java:72) at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:11) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createUnfilteredTest(JUnit4TestLoader.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:70) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [edu.jhuapl.tinkerpop.AccumuloGraph]. at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:50) at edu.jhuapl.tinkerpop.AccumuloGraphTest.generateGraph(AccumuloGraphTest.java:139) at edu.jhuapl.tinkerpop.AccumuloGraphTest.generateGraph(AccumuloGraphTest.java:107) at edu.jhuapl.tinkerpop.AccumuloGraphTest.(AccumuloGraphTest.java:113) ... 21 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:43) ... 24 more Caused by: java.lang.IllegalArgumentException: org.apache.accumulo.core.client.AccumuloException: Invalid method name: 'beginTableOperation' at edu.jhuapl.tinkerpop.AccumuloGraphUtils.handleCreateAndClear(AccumuloGraphUtils.java:80) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:89) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:79) ... 29 more Caused by: org.apache.accumulo.core.client.AccumuloException: Invalid method name: 'beginTableOperation' at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:312) at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:280) at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:208) at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:177) at edu.jhuapl.tinkerpop.AccumuloGraphUtils.handleCreateAndClear(AccumuloGraphUtils.java:70) ... 31 more Caused by: org.apache.thrift.TApplicationException: Invalid method name: 'beginTableOperation' at org.apache.thrift.TApplicationException.read(TApplicationException.java:108) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:71) at org.apache.accumulo.core.master.thrift.MasterClientService$Client.recv_beginTableOperation(MasterClientService.java:467) at org.apache.accumulo.core.master.thrift.MasterClientService$Client.beginTableOperation(MasterClientService.java:453) at org.apache.accumulo.core.client.admin.TableOperationsImpl.beginTableOperation(TableOperationsImpl.java:220) at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:288) ... 35 more if i Tage an Instanz Bock then ist work, what about the distributed Tape?

can you Help me.

estkae commented 8 years ago

I post it tot Github I use Accumulo 1.7.0, Rester 2.6.0, Java 1.7.latest, linux Ubuntu 14.04

I think the problem ist with faktoryGraph Methode

webbrl1 commented 8 years ago

Huh... Looks like something happened to the provided tag on the Accumulo in the POM.

I changed it to 1.7.0 and was able to run the tests so it should work once that changes.

If you want to fix it on your end you can pull the code, change the dependencies in the POM

    <dependency>
        <groupId>org.apache.accumulo</groupId>
        <artifactId>accumulo-core</artifactId>
        <version>1.5.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.accumulo</groupId>
        <artifactId>accumulo-minicluster</artifactId>
        <version>1.5.0</version>
    </dependency>

to

    <dependency>
        <groupId>org.apache.accumulo</groupId>
        <artifactId>accumulo-core</artifactId>
        <version>1.7.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.accumulo</groupId>
        <artifactId>accumulo-minicluster</artifactId>
        <version>1.7.0</version>
    </dependency>

and run "mvn package"

estkae commented 8 years ago

thanks for help but Rexster has the same issue: echo $REXSTER_HOME is set to /user/local/rexster-server/ cp blueprints-accumulo-graph-0.2.2-SNAPSHOT.jar /usr/local/rexster-server/ext/ config/rexster.xml

true graph edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration Distributed ilocara 192.168.15.44:2181 root xxxxxxxx

[WARN] GraphConfigurationContainer - Could not load graph graph. Please check the XML configuration. [WARN] GraphConfigurationContainer - GraphConfiguration could not be found or otherwise instantiated: [edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration]. Ensure that it is in Rexster's path. com.tinkerpop.rexster.config.GraphConfigurationException: GraphConfiguration could not be found or otherwise instantiated: [edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration]. Ensure that it is in Rexster's path. at com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:142) at com.tinkerpop.rexster.config.GraphConfigurationContainer.(GraphConfigurationContainer.java:54) at com.tinkerpop.rexster.server.XmlRexsterApplication.reconfigure(XmlRexsterApplication.java:99) at com.tinkerpop.rexster.server.XmlRexsterApplication.(XmlRexsterApplication.java:47) at com.tinkerpop.rexster.Application.(Application.java:97) at com.tinkerpop.rexster.Application.main(Application.java:189) Caused by: java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [edu.jhuapl.tinkerpop.AccumuloGraph]. at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:50) at edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration.configureGraphInstance(AccumuloRexsterGraphConfiguration.java:47) at com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:124) ... 5 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:43) ... 7 more Caused by: java.lang.NoClassDefFoundError: org/apache/accumulo/fate/zookeeper/ZooCache at edu.jhuapl.tinkerpop.AccumuloGraphConfiguration.getConnector(AccumuloGraphConfiguration.java:904) at edu.jhuapl.tinkerpop.AccumuloGraphUtils.handleCreateAndClear(AccumuloGraphUtils.java:35) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:89) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:79) ... 12 more Caused by: java.lang.ClassNotFoundException: org.apache.accumulo.fate.zookeeper.ZooCache at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 16 more [WARN] GraphConfigurationContainer - GraphFactory could not instantiate this Graph implementation [edu.jhuapl.tinkerpop.AccumuloGraph]. java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [edu.jhuapl.tinkerpop.AccumuloGraph]. at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:50) at edu.jhuapl.tinkerpop.AccumuloRexsterGraphConfiguration.configureGraphInstance(AccumuloRexsterGraphConfiguration.java:47) at com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:124) at com.tinkerpop.rexster.config.GraphConfigurationContainer.(GraphConfigurationContainer.java:54) at com.tinkerpop.rexster.server.XmlRexsterApplication.reconfigure(XmlRexsterApplication.java:99) at com.tinkerpop.rexster.server.XmlRexsterApplication.(XmlRexsterApplication.java:47) at com.tinkerpop.rexster.Application.(Application.java:97) at com.tinkerpop.rexster.Application.main(Application.java:189) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:43) ... 7 more Caused by: java.lang.NoClassDefFoundError: org/apache/accumulo/fate/zookeeper/ZooCache at edu.jhuapl.tinkerpop.AccumuloGraphConfiguration.getConnector(AccumuloGraphConfiguration.java:904) at edu.jhuapl.tinkerpop.AccumuloGraphUtils.handleCreateAndClear(AccumuloGraphUtils.java:35) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:89) at edu.jhuapl.tinkerpop.AccumuloGraph.(AccumuloGraph.java:79) ... 12 more Caused by: java.lang.ClassNotFoundException: org.apache.accumulo.fate.zookeeper.ZooCache at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 16 more

webbrl1 commented 8 years ago

So its missing those classes -- try "mvn -P fatjar package"

That will make a fat jar which has the dependencies pulled in.

estkae commented 8 years ago

Sorry ist the same issue: i think the Problem is in accumulo Type Distributed The same issue is in Java. If i take mock in Java it's work. But this can't use it.

Karl