簡體   English   中英

如何讓Titan圖形數據庫與Google App Engine一起使用?

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

我可以在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上沒有。 您可以使用Compute Engine運行應用程序的Titan部分。 希望不久您將對AppEngine管理的VM有了更多選擇。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM