You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by vg...@apache.org on 2024/04/12 11:41:42 UTC

(incubator-hugegraph) branch fix-gremlin created (now 1e5f5ec26)

This is an automated email from the ASF dual-hosted git repository.

vgalaxies pushed a change to branch fix-gremlin
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


      at 1e5f5ec26 fix

This branch includes the following new commits:

     new 1e5f5ec26 fix

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-hugegraph) 01/01: fix

Posted by vg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vgalaxies pushed a commit to branch fix-gremlin
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git

commit 1e5f5ec2615ab3afc65a5113ef91e12f94206b13
Author: VGalaxies <vg...@apache.org>
AuthorDate: Fri Apr 12 19:41:28 2024 +0800

    fix
---
 .../hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh         | 2 +-
 .../hugegraph-dist/src/assembly/static/scripts/example.groovy         | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/hugegraph-server/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh b/hugegraph-server/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
index 9cb5d0e09..5e14397f7 100644
--- a/hugegraph-server/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
+++ b/hugegraph-server/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
@@ -91,7 +91,7 @@ if [[ $PRELOAD == "true" ]]; then
     cp "${CONF}"/gremlin-server.yaml "${CONF}/${GREMLIN_SERVER_CONF}"
     cp "${SCRIPTS}"/example.groovy "${SCRIPTS}/${EXAMPLE_SCRIPT}"
     sed -i -e "s/empty-sample.groovy/$EXAMPLE_SCRIPT/g" "${CONF}/${GREMLIN_SERVER_CONF}"
-    sed -i -e '/registerRocksDB/d; /serverStarted/d' "${SCRIPTS}/${EXAMPLE_SCRIPT}"
+    sed -i -e '/registerBackends/d; /serverStarted/d' "${SCRIPTS}/${EXAMPLE_SCRIPT}"
 fi
 
 # TODO: show the output message in hugegraph-server.sh when start the server
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 426b0b1cf..266206845 100644
--- a/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
+++ b/hugegraph-server/hugegraph-dist/src/assembly/static/scripts/example.groovy
@@ -21,9 +21,7 @@ import org.apache.tinkerpop.gremlin.structure.T
 
 RegisterUtil.registerBackends()
 
-conf = HugeFactory.getLocalConfig("conf/graphs/hugegraph.properties")
-conf.setProperty("backend", "memory")
-conf.setProperty("serializer", "text")
+conf = "conf/graphs/hugegraph.properties"
 graph = HugeFactory.open(conf)
 graph.serverStarted(GlobalMasterInfo.master("server-tinkerpop"))
 schema = graph.schema()