2014-03-28 34 views
0

我可以Tomcat的V7.0部署我泰坦數據庫web應用程序,但是當我在部署谷歌App Engine的相同的應用程序失敗。以下是錯誤消息:如何讓Titan圖形數據庫與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); 

謝謝!

回答

1

我不知道Titan是如何工作的,但是從堆棧跟蹤中我可以看出,它需要一些Cassandra後端存儲,這在AppEngine上不可用。您可以使用Compute Engine來運行應用程序的Titan部分。希望很快你會有更多的選擇與AppEngine管理虛擬機。

+0

非常感謝您的回覆。谷歌計算引擎像一個魅力,它比亞馬遜AWS便宜得多。 – faustineinsun

相關問題