new HugeClient()连接失败,连接最新的代码编译的hugegraph-server,报错
Expected behavior 期望表现
{type something here...}
Actual behavior 实际表现
Exception in thread "main" java.lang.IllegalStateException: The version 0.30.0.0 of 'hugegraph-api in server' is not in [0.27, 0.28)
at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
at com.baidu.hugegraph.util.E.checkState(E.java:68)
at com.baidu.hugegraph.util.VersionUtil.check(VersionUtil.java:52)
at com.baidu.hugegraph.driver.HugeClient.checkServerApiVersion(HugeClient.java:102)
at com.baidu.hugegraph.driver.HugeClient.initManagers(HugeClient.java:84)
at com.baidu.hugegraph.driver.HugeClient.
Steps to reproduce the problem 复现步骤
- {step 1}
- {step 2}
- {step 3}
Status of loaded data 数据状态
Vertex/Edge summary 数据量
- loaded vertices amount: {like 10 million}
- loaded edges amount: {like 20 million}
- loaded time: {like 200s}
Vertex/Edge example 数据示例
{type something here...}
Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构
{type something here...}
Specifications of environment 环境信息
- hugegraph version: {like v0.7.4}
- operating system: {like centos 7.4, 32 CPUs, 64G RAM}
- hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}
抱歉,这个是由于我们的代码加上了版本检查,但是你所使用的client的版本落后于server版本所致。有两个解决办法:
1、如果着急使用,可以修改 hugegraph 的 hugegraph-api 子模块的 pom.xml 和 com.baidu.hugegraph.version.ApiVersion.java文件,将 pom.xml 的 Implementation-Version 从 0.30 修改为 0.27,将 ApiVersion.java 的 80 行的 0.30 修改为 0.27。然后重新打包起服务;
2、稍等两天(2018-11-23),hugegraph 0.8.0就会发布,并且配套的client和组件也会一并发布。