yugabyte 集成图数据库JanusGraph,原理比较简单就是yugabyte 内置Cassandra,配置好JanusGraph
的访问就可以了。

使用docker 模式部署

创建yugabyte 集群(docker cli )

  • 下载部署工具
mkdir ~/yugabyte && cd ~/yugabyte
wget https://downloads.yugabyte.com/yb-docker-ctl && chmod +x yb-docker-ctl
  • 创建简单集群
./yb-docker-ctl create
  • 效果

配置janusGraph

  • 下载janusGraph
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

 
 
 
 

最新文章

  1. vue-router(2.0)
  2. h5容易遗忘的内容
  3. 2016ACM/ICPC亚洲区沈阳站-重现赛
  4. .NET跨平台:在Linux上基于ASP.NET 5用EF7生成数据库
  5. 实验:传输层:TCP协议
  6. 解读ClassLoader
  7. 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
  8. Exchange Server 2010/2013功能差异
  9. zoj 1081 (改进的弧长算法)(转)
  10. 在QT中创建文件
  11. 双击打开Jar文件
  12. d3根据数据绘制不同的形状
  13. kafka数据迁移实践
  14. Centos6.8 搭建Nginx服务器
  15. ORACLE 锁表处理,解锁释放session
  16. 爬虫请求库——selenium
  17. 013.Zabbix的Items(监控项)
  18. Orchard之生成新模板
  19. Maven是什么?
  20. arcengine 正确绑定办法

热门文章

  1. English trip -- Iris老师整理的一般时态
  2. 20170728xlVBA改转置一例
  3. bzoj2595: [Wc2008]游览计划 斯坦纳树
  4. Oracle性能诊断艺术-读书笔记(执行计划中显示 Starts, E-Rows, REM A-Rows and A-Time)等)
  5. python运维之使用python进行批量管理主机
  6. SecureCRT 7.2.0 Mac版密码无法保存的解决办法
  7. Vysor安装
  8. sha256 in C language
  9. easyui datagrid 诡异的无法显示问题
  10. Final阶段第1周/共1周 Scrum立会报告+燃尽图 03