JHUAPL / AccumuloGraph

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

Invalid method name: 'beginTableOperation' #128

Open ralreiroe opened 8 years ago

ralreiroe commented 8 years ago

I am using 0.2.1 against an Accumulo 1.7.0. As soon as I do a

Configuration cfg = new AccumuloGraphConfiguration()
  .setInstanceType(InstanceType.Distributed)
  .setZooKeeperHosts("zookeeper-host")
  .setInstanceName("instance-name")
  .setUser("user").setPassword("password")
  .setGraphName("graph")
  .setCreate(true);
return GraphFactory.open(cfg);

I get

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:219)
    at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:287)
    at org.apache.accumulo.core.client.admin.TableOperationsImpl.doTableOperation(TableOperationsImpl.java:279)
    at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:207)
    at org.apache.accumulo.core.client.admin.TableOperationsImpl.create(TableOperationsImpl.java:176)
    at edu.jhuapl.tinkerpop.AccumuloGraphUtils.handleCreateAndClear(AccumuloGraphUtils.java:66)
    at edu.jhuapl.tinkerpop.AccumuloGraph.<init>(AccumuloGraph.java:174)
    at edu.jhuapl.tinkerpop.AccumuloGraph.<init>(AccumuloGraph.java:152)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:43)

I presume 1.7.0 is not supported with 0.2.1? Can you advise which version of Accumulo would work for 0.2.1, or which version of AccumuloGraph would work for 1.7.0?

webbrl1 commented 8 years ago

As of this version, we compile against 1.5. Which, in theory, should allow the usage of 1.4-1.6.

As with using any version of accumulo that is not 1.5, make sure to explicitly state the accumulo dependencies in your projects pom to override the version in AccumuloGraphs pom.

I am in the middle of a move so I dont know if we use any APIs that were changed in 1.7 but I can pull it and try it later next week.