HugeGraph 多图配置
生活随笔
收集整理的这篇文章主要介绍了
HugeGraph 多图配置
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
多图配置
我们的系统是可以存在多个图的,并且各个图的后端可以不一样,比如图 hugegraph 和 hugegraph1,其中 hugegraph 以 cassandra 作为后端,hugegraph1 以 rocksdb作为后端。
配置方法也很简单:
修改 gremlin-server.yaml
在 gremlin-server.yaml 的 graphs 域中添加一个键值对,键为图的名字,值为图的配置文件路径,比如:
graphs: {hugegraph: conf/hugegraph.properties,hugegraph1: conf/hugegraph1.properties }修改 rest-server.properties
在 rest-server.properties 的 graphs 域中添加一个键值对,键为图的名字,值为图的配置文件路径,比如:
graphs=[hugegraph:conf/hugegraph.properties, hugegraph1:conf/hugegraph1.properties]添加 hugegraph1.properties
拷贝 hugegraph.properties,命名为 hugegraph1.properties,修改图对应的数据库名以及关于后端部分的参数,比如:
store=hugegraph1...backend=rocksdb serializer=binary停止 Server,初始化执行 init-store.sh(为新的图创建数据库),重新启动 Server
$ bin/stop-hugegraph.sh $ bin/init-store.sh $ bin/start-hugegraph.shhugegraph-studio 也要相应启动两个
总结
以上是生活随笔为你收集整理的HugeGraph 多图配置的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Kafka 集群数据备份 MirrorM
- 下一篇: Yarn 监控 - 监控任务运行状态 (