yugabyte 集成JanusGraph测试
2024-08-27 00:07:04
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
最新文章
- vue-router(2.0)
- h5容易遗忘的内容
- 2016ACM/ICPC亚洲区沈阳站-重现赛
- .NET跨平台:在Linux上基于ASP.NET 5用EF7生成数据库
- 实验:传输层:TCP协议
- 解读ClassLoader
- 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
- Exchange Server 2010/2013功能差异
- zoj 1081 (改进的弧长算法)(转)
- 在QT中创建文件
- 双击打开Jar文件
- d3根据数据绘制不同的形状
- kafka数据迁移实践
- Centos6.8 搭建Nginx服务器
- ORACLE 锁表处理,解锁释放session
- 爬虫请求库——selenium
- 013.Zabbix的Items(监控项)
- Orchard之生成新模板
- Maven是什么?
- arcengine 正确绑定办法
热门文章
- English trip -- Iris老师整理的一般时态
- 20170728xlVBA改转置一例
- bzoj2595: [Wc2008]游览计划 斯坦纳树
- Oracle性能诊断艺术-读书笔记(执行计划中显示 Starts, E-Rows, REM A-Rows and A-Time)等)
- python运维之使用python进行批量管理主机
- SecureCRT 7.2.0 Mac版密码无法保存的解决办法
- Vysor安装
- sha256 in C language
- easyui datagrid 诡异的无法显示问题
- Final阶段第1周/共1周 Scrum立会报告+燃尽图 03