簡體   English   中英

titan中的titan-cassandra-es.properties是什么?

[英]what is titan-cassandra-es.properties in titan?

titan中的titan-cassandra-es.properties文件是什么?

我將GraphOfTheGodsFactory(0.5.4版)創建方法運行到路徑“ tmp / titan”,但未生成titan-cassandra-es.properties文件。

我如何訪問在路徑tmp / titan中創建的圖形以使其可視化。 我嘗試了代碼

private static final String DB_PATH = "conf/titan-config.properties";          
TitanGraph g = TitanFactory.open(DB_PATH); 

然后,我在index.jsp中調用此java以使用cytoscape顯示節點。 但是,我最終收到錯誤消息

jsp中引發的異常:后端速記未知:conf / titan-config.properties

這意味着什么?

titan中的titan-cassandra-es.properties文件是什么?

該配置文件告訴Titan所需的Titan實例類型。 對於該特定文件,它包含用於針對運行中的Cassandra本地實例和運行中的ElasticSearch實例啟動Titan的配置設置。

但是沒有生成titan-cassandra-es.properties文件

不知道為什么您希望該文件被“生成”。 如上所述,這是一個用於配置的.properties文件。 您編寫.properties文件(或使用現有文件)來告訴Titan如何設置。

我如何訪問在路徑tmp / titan中創建的圖形以使其可視化

tmp/titan不會有圖表。 那不是您創建/打開圖的方式。 同樣,您必須為open方法提供配置.properties文件的有效路徑。

您似乎在乎使用Cassandra和Elasticsearch。 如前所述,您必須在系統上本地安裝並運行兩個實例,該默認配置才能起作用。 如果閱讀titan-cassandra-es.properties文件,則可以看到如何保存自己的ES安裝並使其與titan在同一JVM中運行。 具體來說,注釋掉:

index.search.hostname=127.0.0.1
index.search.elasticsearch.client-only=true

和取消注釋:

#index.search.directory=../db/es
#index.search.elasticsearch.client-only=false
#index.search.elasticsearch.local-mode=true

建議使用單獨的ES實例進行生產,但是由於您只想玩《眾神之圖》,因此這種方法可能是可以接受的。

暫無
暫無

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

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