图数据库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-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这个open source 的图数据库. 注:本文的操作主要基于Titan 官方的两篇文档: - ...
- 图数据库 Nebula Graph 的安装部署
Nebula Graph:一个开源的分布式图数据库.作为唯一能够存储万亿个带属性的节点和边的在线图数据库,Nebula Graph 不仅能够在高并发场景下满足毫秒级的低时延查询要求,还能够实现服务高可 ...
- 图数据库ubentu环境neo4j安装
1.下载进入官网下载https://neo4j.com/download-center/#releases 2.设置依赖仓库 wget -O - https://debian.neo4j.org/ne ...
- Oracle 11g R2安装手册(…
1.Oracle 11g R2安装手册(图文教程)For Windows 1.下载Oracle 11g R2 for Windows版本,下载地址如下官方网站:http://download.orac ...
- (三)图数据库neo4j的安装配置
(一)neo4j安装 neo4j有社区版本和企业版,社区版本是免费的,企业版本是收费的.在linux上安装如下步骤: 1.将下载的neo4j-enterprise-3.4.0-unix.tar.gz包 ...
- Ubuntu16.04下Neo4j图数据库官网安装部署步骤(图文详解)(博主推荐)
不多说,直接上干货! 说在前面的话 首先,查看下你的操作系统的版本. root@zhouls-virtual-machine:~# cat /etc/issue Ubuntu LTS \n \l r ...
- Ubuntu14.04下Neo4j图数据库官网安装部署步骤(图文详解)(博主推荐)
不多说,直接上干货! 说在前面的话 首先,查看下你的操作系统的版本. root@zhouls-virtual-machine:~# cat /etc/issue Ubuntu 14.04.4 LTS ...
- JanusGraph 图数据库安装小记 ——以 JanusGraph 0.3.0 为例
由于近期项目中有使用图数据的需求,经过对比,我们选择尝试使用 JanusGraph.本篇小记记录了我们安装 JanusGraph 以及需要一起集成的 Cassandra + Elasticsearch ...
- neo4j 图数据库安装及介绍
neo4j 图数据库安装及介绍 一.neo4j图数据库介绍 图数据库,顾名思义就是利用了"图的数据结构来作为数据存储逻辑体现的一种数据库",所以要想学好图数据库当然需要了解一些关于 ...
随机推荐
- springboot 注解版案例
1.dao层 /** * 查询列表 * @param dataRequest * @return */ @SelectProvider(type = CuiShouSqlProvider.class, ...
- tcmalloc asan
http://blog.csdn.net/jinzhuojun/article/details/46659155 http://blog.csdn.net/hanlizhong85/article/d ...
- 海南小地图(echart)
先看效果 这个是海南省地图: 然后看引入的html: <body class=""> <div class="container"> & ...
- Configuring the launch of the remote virtual machine to debug
Options need to be added to the standard launch of a virtual machine (VM) to enable the debugging ar ...
- 一次dns缓存引发的慘案
时间2015年的某个周六凌晨5点,公司官方的QQ群实用户反馈官网打不开了,但有的用户反馈能够打开.客服爬起来自己用电脑试了一下没有问题,就给客户反馈说.可能是自己网络的问题,请过会在试试.早点8点,越 ...
- JAVA的驼峰和下划线互转帮助类
实体类: import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombo ...
- mingw 构建 mysql-connector-c-6.1.9记录
1.准备工作 首先需要下载mysql-connector-c-6.1.9的源码,然后解压. 然后需要准备编译环境,这里我使用的是msys2(下载地址http://repo.msys2.org/dist ...
- redhat7.0安装ifconfig
问题描述: Setup is unable to find the "ifconfig" program on your machine. Please make sure it ...
- Q值, 电感Q因素, 电感品质因素, Inductor Q, Quality Factor
Q值基本概念 Q值, 品质因素, Quality Factor 是广泛使用于物理和工程领域的一个参数, 这指的是一个机械或非机械的组件里, 共振(谐振)的能量损失比例, 是衡量一个元件或谐振回路性能的 ...
- 图像检索:一维直方图+欧几里得距离+flann+KNN
在F盘生成了一个文件名称为"文件夹"的文本文件. 第一步:批处理提取图像的一维颜色直方图,并保存到.xml中的featureHists 第一个參数:图像的路径 第二个參数:保存的. ...