gpt4 book ai didi

ubuntu - 在 ubuntu 上本地运行 Neo4J

转载 作者:行者123 更新时间:2023-12-04 19:15:38 25 4
gpt4 key购买 nike

我想得到这个neo4j project (sdn)在 ubuntu 上本地运行。基于instructions .我做了以下事情:

  • 使用 guide 在 ubuntu 上安装了 neoj4
  • 设置用户并传递给 neo4j/neopass 在网络用户界面中:http://localhost:7474/browser/
  • 已添加 export GRAPHENEDB_URL="http://neo4j:neopass@localhost:7474"给我的 ~/.bashrc 文件。
  • 执行:neo4j-shell -c < categorySetup.cql
  • 使用以下命令启动 Web 应用程序:mvn clean spring-boot:run

  • 但是当我在 http://localhost:8080/ 访问它时我只是得到空的下拉菜单。这是终端中的输出:
    2016-07-16 18:10:06,611 ERROR 4j.ogm.session.response.RowModelResponse:  47 - failed to parse: {"row":[[{"name":"Bacon"},{},{"categoryColor":"#FF0000","name":"Meat"}]],"meta":[[{"id":8,"type":"node","deleted":false},{"id":0,"type":"relationship","deleted":false},{"id":1,"type":"node","deleted":false}]]}
    2016-07-16 18:10:06,627 WARN org.eclipse.jetty.servlet.ServletHandler: 542 -
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "meta" (class org.neo4j.ogm.session.result.RowModelResult), not marked as ignorable (one known property: "row"])
    at [Source: {"row":[[{"name":"Bacon"},{},{"categoryColor":"#FF0000","name":"Meat"}]],"meta":[[{"id":8,"type":"node","deleted":false},{"id":0,"type":"relationship","deleted":false},{"id":1,"type":"node","deleted":false}]]}; line: 1, column: 82] (through reference chain: org.neo4j.ogm.session.result.RowModelResult["meta"])
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) ~[spring-webmvc-4.2.2.RELEASE.jar:4.2.2.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) ~[spring-webmvc-4.2.2.RELEASE.jar:4.2.2.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) ~[javax.servlet-3.0.0.v201112011016.jar:na]

    基于以下,我尝试在 sdn-4.1 上构建 + 运行测试( mvn clean install )但由于缺少依赖项而失败:
    [ERROR] Failed to execute goal on project flavorwocky: Could not resolve dependencies for project com.flavorwocky:flavorwocky:jar:2.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework.data:spring-data-commons:jar:1.12.0.M1, org.springframework.data:spring-data-neo4j:jar:4.1.0.M1, org.springframework.data:spring-data-neo4j:jar:tests:4.1.0.M1: Failure to find org.springframework.data:spring-data-commons:jar:1.12.0.M1 in

    我尝试使用最新发布的版本,但是在运行测试时出现了一堆类未找到错误:
    java.lang.NoClassDefFoundError: org/neo4j/ogm/service/ResourceService

    似乎 sdn-4.1sdn 相比已损坏构建良好 +所有测试运行,所以现在我将尝试让项目在 sdn 上运行

    最佳答案

    你可以有一个本地的 neo4j,指定你第一次启动 neo4j 时使用的密码,或者禁用 auth 来播放。

    您最好使用 sdn-4.1分支,实际上是 sdn分支有一些问题,一年以来没有维护。

    其次,没有/categories端点,右端点是/api/categories在运行 cql 后,由 Angular 应用程序使用并返回一些 json脚本我有以下响应:

    [{"@id":"1","name":"Eggs and Dairy","categoryColor":"#D6C2AD","id":7864},{"@id":"2","name":"Meat","categoryColor":"#FF0000","id":7865},{"@id":"3","name":"Vegetable","categoryColor":"#009933","id":7866},{"@id":"4","name":"Seafood","categoryColor":"#0000CC","id":7867},{"@id":"5","name":"Fruit","categoryColor":"#FF9900","id":7868},{"@id":"6","name":"Nuts and Grains","categoryColor":"#993333","id":7869},{"@id":"7","name":"Herbs and Spices","categoryColor":"#FFF2BA","id":7870},{"@id":"8","name":"Condiments","categoryColor":"#CC66FF","id":7871}]

    关于ubuntu - 在 ubuntu 上本地运行 Neo4J,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38382352/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com