如何让Titan图形数据库与谷歌应用引擎一起工作



我可以在Tomcat v7.0上部署我的titan数据库web应用程序,但是当我在Google app Engine上部署相同的应用程序时失败了。下面是错误信息:

java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager
at com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:355)
at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:367)
at com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:311)
at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:121)
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1163)
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:75)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40)
   ...

部分Java代码如下:

Configuration conf = new BaseConfiguration();
conf.setProperty("storage.backend","cassandrathrift");
conf.setProperty("storage.hostname","127.0.0.1");
TitanGraph g = TitanFactory.open(conf);

谢谢!

我不知道Titan是如何工作的,但是从堆栈跟踪中我可以看出它需要一些Cassandra后端来存储,这在AppEngine上是不可用的。您可以使用计算引擎来运行应用程序的Titan部分。希望很快你就会有更多的AppEngine管理虚拟机的选择。

最新更新