简体   繁体   English

如何让Titan图形数据库与Google App Engine一起使用?

[英]How to let the Titan graph database working with Google App Engine?

I can deploy my titan database web app on Tomcat v7.0 , but it failed when I was deploying the same app on Google App Engine . 我可以在Tomcat v7.0上部署我的titan数据库Web应用程序 ,但是当我在Google App Engine上部署同一应用程序时,它失败了。 Here is the error message: 这是错误消息:

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)
   ...

Part of the Java code is as follows: Java代码的一部分如下:

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

Thank you! 谢谢!

I don't know how Titan works, but from the stack trace I can figure out that it requires some Cassandra backend for storage which is not available on AppEngine. 我不知道Titan是如何工作的,但是从堆栈跟踪中我可以发现它需要一些Cassandra后端来存储,而AppEngine上没有。 You may use Compute Engine for running the Titan part of your application. 您可以使用Compute Engine运行应用程序的Titan部分。 Hopefully soon you will have one more option with AppEngine managed VM. 希望不久您将对AppEngine管理的VM有了更多选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM