算法编译报错

编译nebula-算法包
有小伙伴遇到过吗

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:06.449s
[INFO] Finished at: Wed Jan 13 20:07:00 CST 2021
[INFO] Final Memory: 17M/1963M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nebula-algorithm: Could not resolve dependencies for project com.vesoft:nebula-algorithm:jar:1.1.0: Could not find artifact com.vesoft:nebula-spark:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

麻烦你按照文档的说明操作

你需要先编译nebula-spark。

好的 抱歉 没进行完整的编译 没看到 sorry

1 个赞

~~又出了这样的错~
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (checkstyle) on project client: Unable to parse configurationconfiguration entry ‘sourceDirectories’ with value ‘/home/xxxxxx7/nebula-java/client/src/main/java’ of type java.lang.String to property of type
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (chec for parameter sourceDirectories: Cannot assign configuration entry ‘sourceDirectories’ with value '/home/xxxxxxx/nebula-java/client/src/main/j

你的maven 版本是多少?

3.05

你可以看下这个帖子,升级下maven的版本

好的 谢谢

您好,到最后配置的一步了,报错 ERROR MetaClientImpl: List Spaces Error: Method name listSpaces not found
,我检查了下空间是没错的,地址也没错

我去查了文件的方法 也没有缺失

你这是运行过程报错的,你应该是连错地址了,你要给的是metad的ip和端口,你应该是给成graphd或者storage的了,所以报这个错。

感谢 我试试 等到你的回复好不容易 周末愉快

抱歉,今天请假了,所以不能及时回复。 :rofl:

2 个赞

没关系,数据跑出来了,最后是在parquet文件中吗

这里有介绍配置文件参数的意义
https://docs.nebula-graph.com.cn/nebula-algorithm/na-ug-example/
src/main/resources/application.conf

1 个赞

运行过程中报错了 :sob:no nebula_codec in java.library.path 导致输出的没有结果

数据解析需要nebula_codec这个库,你可以参考,这两个问题

这两个问题就是告诉你怎么获取nebula_codec这个库的,这个需要自己编译。

1 个赞

跑了半天,发现环境没啥问题,但是读边的数据取不到;
我可以fetch到,但是lookup不到是什么原因呀

图数据库异常

是否基于updateTime创建的索引在数据插入后?如果是的话,需要rebuild index一下