janusGraph

janusGraph踩坑记录

2019-02-22  本文已影响0人  yeah青没素

PS:希望可以帮助大家踩坑,如果大家知道文中待回答的问题答案,欢迎留言,我会尽快试验并更新,为大家服务。

问题:使用jar包连接 JanusGraph 会挂掉,报连不上远程主机。

回答:待回答

问题:查询节点或节点数量时出现

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中导入节点的时候出现:

java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Vertex Label with given name does not exist: LawItem

回答:是因为禁用了自动创建schema,而图中没有对应的schema,所以报错。检查在properties配置文件中是否有:schema.default=none。

即使没有配置这个配置项,如果你配置了storage.batch-loading=true,系统也会默认 禁用了自动创建schema

TO BE CONTINUE......

上一篇下一篇

猜你喜欢

热点阅读