图数据库titan 和 rexster安装手册
来源:互联网 发布:淘宝潮流男装店铺 编辑:程序博客网 时间:2024/05/22 01:50
图数据库titan 和 rexster安装手册
titan是图数据库, rexster是图显示服务 titan 安装 下载 titan 0.3.2 解压 titan-all-0.3.2.zip 到 /opt/hugedata/share/ 解压后得到 /opt/hugedata/share/titan-all-0.3.2/ 建立软连接 cd /opt/hugedata/share/ ln -s titan-all
titan是图数据库, rexster是图显示服务
titan 安装
下载 titan 0.3.2
解压 titan-all-0.3.2.zip 到 /opt/hugedata/share/
解压后得到 /opt/hugedata/share/titan-all-0.3.2/
建立软连接
cd /opt/hugedata/share/
ln -s titan-all-0.3.2 titan
/etc/profile 增加
export TITAN_HOME=/opt/hugedata/share/titan
source /etc/profile
----------------------
测试titan, 生成graph
cd $TITAN_HOME
bin/gremlin.sh
gremlin> g = GraphOfTheGodsFactory.create('/tmp/titan')
==>titangraph[local:/tmp/titan]
gremlin> saturn = g.V('name','saturn').next()
==>v[4]
gremlin> saturn.map()
==>name=saturn
==>age=10000
==>type=titan
gremlin> saturn.in('father').in('father').name
==>hercules
chmod 777 /tmp/titan
更多资料请参照 https://github.com/thinkaurelius/titan/wiki
rexster 安装
下载 rexster 2.3.0
解压 rexster-server-2.3.0.zip 到 /opt/hugedata/share/
解压后得到 /opt/hugedata/share/rexster-server-2.3.0/
建立软连接
cd /opt/hugedata/share/
ln -s rexster-server-2.3.0 rexster
cd /opt/hugedata/share/rexster
mkdir logs
chmod 777 logs
打开 bin/rexster-service.sh
修改变量 REXSTER_DIR="/opt/hugedata/share/rexster-server-2.3.0"
修改变量 REXSTER_LOG_DIR="/opt/hugedata/share/rexster-server-2.3.0/logs"
ln -s /opt/hugedata/share/rexster/bin/rexster-service.sh /etc/init.d/rexster
chkconfig --add rexster
cd /opt/hugedata/share/rexster
修改 rexster.xml
修改配置 <rexster>/<http>/<server-host> 到安装机器 <host ip>
修改配置 <rexster>/<http>/<base-uri> 到安装机器 http://<host ip>
/etc/profile 增加
export REXSTER_HOME=/opt/hugedata/share/rexster
source /etc/profile
cd /opt/hugedata/share/rexster
mkdir ext/titan
cp $TITAN_HOME/lib/* $REXSTER_HOME/ext/titan
bin/rexster-service.sh start
检查 logs/service.err, logs/service.log
rexster测试页面, 测试例子图是否能显示
http://<rexster 服务启动机器ip>:8182
rexster 使用 titan /local 为backend
cd /opt/hugedata/share/rexster
bin/rexster-service.sh stop
修改rexster.xml增加 <rexster>/<graphs>/<graph> 部分
<graph>
<graph-name>titanexample</graph-name>
<graph-type>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graph-type>
<graph-location>/tmp/titan</graph-location>
<graph-read-only>false</graph-read-only>
<properties>
<storage.backend>local</storage.backend>
<storage.buffer-size>100</storage.buffer-size>
</properties>
<extensions>
<allows>
<allow>tp:gremlin</allow>
</allows>
</extensions>
</graph>
bin/rexster-service.sh start
rexster测试页面: http://<rexster host ip>:8182
rexster 使用 titan /hbase 为backend
cd /opt/hugedata/share/rexster
bin/rexster-service.sh stop
导入数据到 hbase
修改 rexster.xml, 增加一下
<graph>
<graph-enabled>true</graph-enabled>
<graph-name>ipgraph</graph-name>
<graph-type>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graph-type>
<graph-location></graph-location>
<graph-read-only>false</graph-read-only>
<properties>
<storage.backend>hbase</storage.backend>
<storage.hostname>hbase zookeeper quorum ip, 逗号分隔</storage.hostname>
<storage.tablename>表名</storage.tablename>
</properties>
<extensions>
<allows>
<allow>tp:gremlin</allow>
</allows>
</extensions>
</graph>
bin/rexster-service.sh start
rexster测试页面: http://<rexster host ip>:8182
更多资料,参照 https://github.com/thinkaurelius/titan/wiki/Rexster-Graph-Server
- 图数据库titan 和 rexster安装手册
- 图数据库Titan安装与部署
- 图数据库 Titan 快速入门
- 图数据库Titan/Gremlin查询过程分析
- 图数据库Titan的使用总结
- 解决windows下安装titan图数据库报错jamm-0.3.0.jar不存在
- Titan数据库简介
- 图数据库Titan(Gremlin)对索引的创建
- 图数据库Titan在生产环境中的使用全过程+分析
- 图数据库Titan在生产环境中的使用全过程+分析
- Java操作图数据库Titan
- 统计Titan图中的点数和边数
- 淘宝开源数据库OceanBase编译、安装和配置手册
- TITAN
- Titan数据库官方文档翻译(一)
- Titan图形数据库的应用实例讲解
- FreeBSD和JunOS安装手册
- Oracle10g数据库安装、监听配置指导手册
- 实用设计心理学,你值得了解!
- AppWidget组件的处理事件
- LBS基站定位
- 在{{}}表达式中用Math
- 怎么把word转成pdf格式的文件
- 图数据库titan 和 rexster安装手册
- kairosdb中的配置说明
- ListView addHeaderView() 之后item位置不对
- 第二节课作业
- 多线程处理
- AlertDialog修改title,message,button样式
- WPF-使用代码创建Grid行与列,并将控件添加到Grid中的指定行指定列
- 软件开发中一些专业名词解释
- centos 下运行程序出现error while loading shared libraries cannot open shared object file错误