PS:希望可以幫助大家踩坑,如果大家知道文中待回答的問題答案,歡迎留言,我會盡快試驗并更新,為大家服務。
一
問題:使用jar包連接 JanusGraph 會掛掉,報連不上遠程主機。
回答:待回答
二
問題:查詢節(jié)點或節(jié)點數(shù)量時出現(xiàn)
WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [()]. For better performance, use indexes
回答:在配置文件中配置強制使用索引
force-index=true
storage.batch-loading=true(批量導入)
三
問題:在向janusgraph中導入節(jié)點的時候出現(xiàn):
java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Vertex Label with given name does not exist: LawItem
回答:是因為禁用了自動創(chuàng)建schema,而圖中沒有對應的schema,所以報錯。檢查在properties配置文件中是否有:schema.default=none。
即使沒有配置這個配置項,如果你配置了storage.batch-loading=true,系統(tǒng)也會默認?禁用了自動創(chuàng)建schema
TO BE CONTINUE......