标签:方便 ble ati 分享 system block lock load 资料
yugabyte 集成图数据库JanusGraph,原理比较简单就是yugabyte 内置Cassandra,配置好JanusGraph
的访问就可以了。
使用docker 模式部署
mkdir ~/yugabyte && cd ~/yugabyte
wget https://downloads.yugabyte.com/yb-docker-ctl && chmod +x yb-docker-ctl
./yb-docker-ctl create
wget https://github.com/JanusGraph/janusgraph/releases/download/v0.2.0/janusgraph-0.2.0-hadoop2.zip
unzip janusgraph-0.2.0-hadoop2.zip
cd janusgraph-0.2.0-hadoop2
./bin/gremlin.sh
graph = JanusGraphFactory.open(‘conf/janusgraph-cql.properties‘)
加载测试数据
GraphOfTheGodsFactory.loadWithoutMixedIndex(graph,true)
g = graph.traversal()
简单查询
g.V(saturn).in(‘father‘).in(‘father‘).values(‘name‘)
使用yugabyte 内置的Cassandra 进行应用开发还是比较方便的,同时我们不用太多关注Cassandra的部署安装,yugabyte部署起来比较方便
https://docs.yugabyte.com/latest/develop/ecosystem-integrations/janusgraph/
https://docs.yugabyte.com/latest/quick-start/install/#docker
标签:方便 ble ati 分享 system block lock load 资料
原文地址:https://www.cnblogs.com/rongfengliang/p/9791149.html