JanusGraph问题

问题:使用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


 

发布了184 篇原创文章 · 获赞 32 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/wjandy0211/article/details/102860940
今日推荐