forked from hugegraph/hugegraph-sync
fix(server): switch rocksdb backend to memory when executing gremlin example (#2518)
This commit is contained in:
parent
1228dec04d
commit
3783247c74
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue