Open ljhhuxiaoba opened 5 months ago
None
报错信息: Exception in thread "main" java.lang.IllegalStateException: The version 0.71.0.0 of 'hugegraph-api in server' is not in [0.38, 0.68)
出错Java代码: String host = "localhost"; int port = 8080; String gremlin = "g.V().drop()"; HugeClient hugeClient = HugeClient.builder("http://"+host+":"+port, "hugegraph") .configTimeout(120) .build(); GremlinManager gremlinManager = hugeClient.gremlin(); ResultSet resultSet = gremlinManager.gremlin(gremlin).execute();
相关依赖:
<dependency> <groupId> org.apache.cassandra</groupId> <artifactId>cassandra-all</artifactId> <version>0.8.1</version> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.baidu.hugegraph</groupId> <artifactId>hugegraph-client</artifactId> <version>2.0.1</version> </dependency>
No response
Refer this issue: (HugeGraph has moved to apache repo) https://github.com/hugegraph/hugegraph-client/issues/146
And also update README now
README
Bug Type (问题类型)
None
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
报错信息: Exception in thread "main" java.lang.IllegalStateException: The version 0.71.0.0 of 'hugegraph-api in server' is not in [0.38, 0.68)
出错Java代码: String host = "localhost"; int port = 8080; String gremlin = "g.V().drop()"; HugeClient hugeClient = HugeClient.builder("http://"+host+":"+port, "hugegraph") .configTimeout(120) .build(); GremlinManager gremlinManager = hugeClient.gremlin(); ResultSet resultSet = gremlinManager.gremlin(gremlin).execute();
相关依赖:
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response