hugegraph多图配置
查了很久的博客,找到了一个大佬写的,自己也备注一下,防止以后找不到
链接:[https://blog.csdn.net/zhangshenghang/article/details/103893172]
首先,在hugegraph-version/conf 下(以下所有配置都在conf下找,这是0.9.2版本) 找到 hugegraph.properties
cp hugegraph.properties 自定义.properties
修改 自定义.properties
// 根据自己情况定义修改
backend=hbase
serializer=hbase
// 数据库表名
store=hugegraph2
修改gremlin-server.yaml文件 有个
graphs:{
hugegraph: conf/hugegraph.properties , // 默认(加逗号)
new_graohname: conf/自定义.properties
}
接下来修改 rest-server.properties
找到下面这一行内容
graphs=[hugegraph:conf/hugegraph.properties] // 默认
修改为
graphs=[hugegraph:conf/hugegraph.properties, 自定义(和 自定义.properties里的store配置要一样): conf/自定义.properties]
修改完之后,进入bin下,
./stop-hugegraph.sh
./init-store.sh(hugegraph自己创建需要的表)
./start-hugegraoh.sh
关于hugegraph可视化,目前用的是hugegraph-studio,这个目前只能显示单图,hugegraph-hubble还没发布,上面配置了多图,显示哪个图,需要再conf/hugegraph-studio.properties里找到配置项:graph.name=hugegraph , 把hugegraph修改为你刚刚多图配置里的那个store,然后重启,就可以了,虽然只能显示多图,但是api可以随意请求任意图