Titan Graph DataBase 研究 (二)----Titan Server 发布
来源:互联网 发布:淘宝卖家电话采集 编辑:程序博客网 时间:2024/06/11 03:08
上一篇讲到如何搭建titan,那么今天就来说说如何进行Titan Server的发布,以及如何插入数据
由于上篇讲的是如何搭建基于hbase-solr的titan graph database,那么直接复用上篇的配置文件。
/conf/titan-hbase-solr.properties
那么下面就说一下发布titan Server的几个步骤
官方文档说明远程连接TitanServer需要启动一个TitanServer,在Titan内部实现,Titan使用Gremlin Server中的TinkerPop Stack 请求客户端服务,因此,配置Titan Server是通过一个Gremlin Server配置文件来进行配置的。
1.首先将/conf/titan-hbase-solr.properties文件复制 $TITAN_HOME/conf/gremlin-server中并且在配置文件中添加如下配置
gremlin.graph=com.thinkaurelius.titan.core.TitanFactory
并且删除
scriptEngines: { gremlin-groovy: { imports: [java.lang.Math], staticImports: [java.lang.Math.PI], scripts: [scripts/empty-sample.groovy]}, nashorn: { imports: [java.lang.Math], staticImports: [java.lang.Math.PI]}}
2.修改$TITAN_HOME/conf/gremlin-server/gremlin-server.yaml文件,修改graphs配置如下
graphs: { graph: conf/gremlin-server/titan-hbase-solr.properties}plugins: - aurelius.titan ...
3.启动TitanServer
nohup sh $TITAN_HOME/bin/gremlin-server.sh &
4.验证TitanServer
#进入Gremlin console./$TITAN_HOME/bin/gremlin.sh#连接Gremlin Servergremlin> :remote connect tinkerpop.server ../conf/remote.yamllog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.==>Connected - localhost/127.0.0.1:8182gremlin> :> g.V().values('name')==>neptune==>jupiter==>hercules==>hydra==>sky==>nemean==>cerberus==>sea==>alcmene==>saturn==>pluto==>tartarus
这样就证明TitanServer已经正确发布,ok下一篇研究一下java APi 操作
如果想要详细的了解Gremlin Server的,可以参考一下下面的文档, 搜索Gremlin Server
http://tinkerpop.apache.org/docs/3.0.1-incubating/#gremlin-server
0 0
- Titan Graph DataBase 研究 (二)----Titan Server 发布
- Titan Graph DataBase 研究 (二)----Titan Server 发布
- Titan Graph DataBase 研究 (一)----环境搭建
- Titan Graph DataBase 研究 (一)----环境搭建
- Titan Graph DataBase 研究 (三)----Java API使用 上
- Titan Graph DataBase 研究 (三)----Java API使用 上
- graph database project: Titan 特性小结
- TITAN
- TITAN引擎【0.1.0】版本发布
- Titan代碼行數
- 初始Titan
- 初始Titan
- asus pc server + geforce titan xp + centos 7
- Titan漫谈(二)——安装配置
- Titan openstack design
- Titan - Using HBase
- Titan漫谈(一)
- Titan连接Hbase后端
- hdu4609 3-idiots
- python3 ssl经常性报错解决方案
- ZOJ 3623 Battle Ships
- UVa10340 - All in All
- Genymotion的安装与eclipse配置教程
- Titan Graph DataBase 研究 (二)----Titan Server 发布
- day11-API
- 寄存器(内存访问二)
- POJ 3469 Dinic (二元关系)
- json的初始化赋值格式
- PLSQL Procedure 实例1
- LeetCode 449. Serialize and Deserialize BST
- UVa1587 - Box
- app2sd使用教程