美文网首页janusGraph
janusGraph踩坑记录

janusGraph踩坑记录

作者: yeah青没素 | 来源:发表于2019-02-22 18:13 被阅读0次

    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......

    相关文章

      网友评论

        本文标题:janusGraph踩坑记录

        本文链接:https://www.haomeiwen.com/subject/nzpeyqtx.html