apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.62k stars 517 forks source link

load example 时,报错信息如下,核对配置文件暂未发现问题 #1210

Closed williamJia closed 3 years ago

williamJia commented 3 years ago

bin/hugegraph-loader -g hugegraph -f example/file/struct.json -s example/file/schema.groovy

ERROR: Failed to load Exception in thread "main" null: <!doctype html>HTTP Status 404 – Not Found

HTTP Status 404 – Not Found


Type Status Report

Message The requested resource [/versions] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/8.5.58

at com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:44) at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:100) at com.baidu.hugegraph.rest.RestClient.get(RestClient.java:193) at com.baidu.hugegraph.api.version.VersionAPI.get(VersionAPI.java:41) at com.baidu.hugegraph.driver.VersionManager.getApiVersion(VersionManager.java:45) at com.baidu.hugegraph.driver.HugeClient.checkServerApiVersion(HugeClient.java:122) at com.baidu.hugegraph.driver.HugeClient.initManagers(HugeClient.java:108) at com.baidu.hugegraph.driver.HugeClient.(HugeClient.java:72) at com.baidu.hugegraph.loader.util.HugeClientHolder.newHugeClient(HugeClientHolder.java:45) at com.baidu.hugegraph.loader.util.HugeClientHolder.get(HugeClientHolder.java:33) at com.baidu.hugegraph.loader.HugeGraphLoader.createSchema(HugeGraphLoader.java:108) at com.baidu.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:85) at com.baidu.hugegraph.loader.HugeGraphLoader.main(HugeGraphLoader.java:66)

williamJia commented 3 years ago

有可能找到原因了,我是自定义了 server 的端口,而 loader 去默认的端口号访问是访问不到信息的,那么需要做的或许是同步 loader 访问 server 的端口号就应该可以了,但是这个loader 的配置文件在什么地方有知道的么?