CentOS7 JanusGraph 安装

1、下载 JanusGraph

cd /opt
wget https://github.com/JanusGraph/janusgraph/releases/download/v0.4.0/janusgraph-0.4.0-hadoop2.zip
mv janusgraph-0.4.0-hadoop2 janusgraph
cd janusgraph

2、配置JanusGraph

cp conf/janusgraph-hbase-es.properties conf/gremlin-server/janusgraph-hbase-es.properties
cp conf/gremlin-server/gremlin-server.yaml conf/gremlin-server/socket-http-gremlin-server.yaml 

编辑conf/gremlin-server/janusgraph-hbase-es.properties,修改如下:

gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=hbase
storage.hostname=zk1.test.guonanjun.com:2181,zk1.test.guonanjun.com:2181,zk1.test.guonanjun.com:2181

index.search.backend=elasticsearch
index.search.hostname=es1.es.guonanjun.com:9200,es2.es.guonanjun.com:9200,es3.es.guonanjun.com:9200

编辑 conf/gremlin-server/ socket-http-gremlin-server.yaml,修改如下:

host: js1.janusgraph.guonanjun.com
port: 8182
scriptEvaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
graphs: {
  graph: conf/gremlin-server/janusgraph-hbase-es-server.properties
}

3、启动服务

bin/gremlin-server.sh ./conf/gremlin-server/socket-http-gremlin-server.yaml

4、测试连接

bin/gremlin.sh

未经允许不得转载:君子如兰 » CentOS7 JanusGraph 安装

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏