From 5c06a6b177b3e81e24c2c80044da25b79683aa0c Mon Sep 17 00:00:00 2001 From: VGalaxies Date: Fri, 12 Apr 2024 14:17:15 +0800 Subject: [PATCH] fix --- .../src/assembly/static/scripts/example.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy b/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy index 12893b7545..426b0b1cfd 100644 --- a/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy +++ b/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy @@ -19,9 +19,11 @@ import org.apache.hugegraph.dist.RegisterUtil import org.apache.hugegraph.masterelection.GlobalMasterInfo import org.apache.tinkerpop.gremlin.structure.T -RegisterUtil.registerRocksDB() +RegisterUtil.registerBackends() -conf = "conf/graphs/hugegraph.properties" +conf = HugeFactory.getLocalConfig("conf/graphs/hugegraph.properties") +conf.setProperty("backend", "memory") +conf.setProperty("serializer", "text") graph = HugeFactory.open(conf) graph.serverStarted(GlobalMasterInfo.master("server-tinkerpop")) schema = graph.schema()