下载地址:https://github.com/JanusGraph/janusgraph/releases/

版本:Version 0.3.2 (June 16, 2019)

安装

解压 janusgraph-0.3.2-hadoop2.zip 文件

janusgraph单机版安装

注:本次安装janusgraph基于es和hbse,所以先安装es和hbase

1.安装jdk

2.安装janusgraph

unzip janusgraph-0.3.2-hadoop2.zip

3.配置启动配置文件conf/gremlin-server/gremlin-server.yaml

# Copyright 2019 JanusGraph Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.host: 192.168.2.116
port: 8182
scriptEvaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
graphs: {graph: conf/gremlin-server/janusgraph-hbase-solr.properties
}
scriptEngines: {gremlin-groovy: {plugins: { org.janusgraph.graphdb.tinkerpop.plugin.JanusGraphGremlinPlugin: {},org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},org.apache.tinkerpop.gremlin.tinkergraph.jsr223.TinkerGraphGremlinPlugin: {},org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {classImports: [java.lang.Math], methodImports: [java.lang.Math#*]},org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {files: [scripts/empty-sample.groovy]}}}}
serializers:- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}# Older serialization versions for backwards compatibility:- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0, config: {ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
processors:- { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }}- { className: org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor, config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }}
metrics: {consoleReporter: {enabled: true, interval: 180000},csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv},jmxReporter: {enabled: true},slf4jReporter: {enabled: true, interval: 180000},gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST},graphiteReporter: {enabled: false, interval: 180000}}
maxInitialLineLength: 4096
maxHeaderSize: 8192
maxChunkSize: 8192
maxContentLength: 65536
maxAccumulationBufferComponents: 1024
resultIterationBatchSize: 64
writeBufferLowWaterMark: 32768
writeBufferHighWaterMark: 65536

4.配置启动配置文件conf/gremlin-server/janusgraph-hbase-solr.properties

# functionality. This setting is optional.  JanusGraph can use multiple
# heterogeneous index backends.  Hence, this option can appear more than
# once, so long as the user-defined name between "index" and "backend" is
# unique among appearances.Similar to the storage backend, this should be
# set to one of JanusGraph's built-in shorthand names for its standard
# index backends (shorthands: lucene, elasticsearch, es, solr) or to the
# full package and classname of a custom/third-party IndexProvider
# implementation.
#
# Default:    elasticsearch
# Data Type:  String
# Mutability: GLOBAL_OFFLINE
#
# Settings with mutability GLOBAL_OFFLINE are centrally managed in
# JanusGraph's storage backend.  After starting the database for the first
# time, this file's copy of this setting is ignored.  Use JanusGraph's
# Management System to read or modify this value after bootstrapping.
index.search.backend=solr
gremlin.graph=org.janusgraph.core.JanusGraphFactory
# The operation mode for Solr which is either via HTTP (`http`) or using
# SolrCloud (`cloud`)
#
# Default:    cloud
# Data Type:  String
# Mutability: GLOBAL_OFFLINE
#
# Settings with mutability GLOBAL_OFFLINE are centrally managed in
# JanusGraph's storage backend.  After starting the database for the first
# time, this file's copy of this setting is ignored.  Use JanusGraph's
# Management System to read or modify this value after bootstrapping.
index.search.solr.mode=http# List of URLs to use to connect to Solr Servers (LBHttpSolrClient is
# used), don't add core or collection name to the URL.
#
# Default:    http://localhost:8983/solr
# Data Type:  class java.lang.String[]
# Mutability: MASKABLE
index.search.solr.http-urls=http://192.168.2.116:8983/solr
index.search.solr.mode=cloud
index.search.solr.zookeeper-ur=192.168.2.116:2181/solr
index.search.solr.configset=janusgraph

janusgraph-hbase-solr.properties 配置文件说明:

storage.backend=hbase //使用HBase作为存储后端
storage.hostname=zookeeper-host1,zookeeper-host2,zookeeper-host3 //HBase的Zookeeper
storage.hbase.table=janusgraph//HBase存储JanusGraph元数据的表名
storage.hbase.ext.zookeeper.znode.parent=/hbase //HBase使用的Znode
storage.hbase.ext.hbase.zookeeper.property.clientPort=2181 //端口HBase的查询是基于Rowkey,所以在条件查询这块是弱项,一旦Rowkey确定如果有新的查询就比较难。所以为了解决这个问题,JanusGraph引入了索引后端,下面我们介绍下如何配置Solr作为JanusGraph的索引后端。配置文件conf/janusgraph-hbase-solr.properties配置参数如下:index.search.backend=solr //使用solr作为索引后端
index.search.solr.mode=cloud //solr使用集群模式
index.search.solr.zookeeper-url=zookeeper-host1:2181/solr,zookeeper-
host2:2181/solr,zookeeper-host3:2181/solr //HBase使用的Zookeeper
index.search.solr.configset=janusgraph //Solr使用HBase的元数据表名

5.启动服务

nohup bin/gremlin-server.sh  >log.log &

JanusGraph 安装相关推荐

  1. 图数据库JanusGraph介绍及使用(三):安装与初步使用

    图数据库JanusGraph介绍及使用(三):安装与初步使用 作者:家辉,日期:2018-07-05 CSDN博客: http://blog.csdn.net/gobitan 说明:这是图数据库Jan ...

  2. 图数据库JanusGraph实战[6]: JanusGraph+HBase+ElasticSearch的环境搭建

    图数据库JanusGraph实战[6]: JanusGraph+HBase+ElasticSearch的环境搭建 作者:胡佳辉(家辉)  日期:2019年01月14日 CSDN博客:https://b ...

  3. JanusGraph环境搭建实战

    JanusGraph环境搭建实战 最近工作一直在做关于图数据的开发工作,正在开发图计算相关的功能,图数据库的内核还是基于TinkerPop3的,TinkerPop3提供了一套完整的图数据模型建模,标准 ...

  4. janusgraph基本使用

    TinkerPop's Hadoop-Gremlin JanusGraph with TinkerPop's Hadoop-Gremlin 利用Hadoop-Gremlin批量导入json数据到Jan ...

  5. JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装

    JanusGraph: 可视化 Gephi 插件安装可参考:https://datamining.blog.csdn.net/article/details/103894994 下载地址:https: ...

  6. JanusGraph: 可视化 Gephi 插件安装

    下载地址 https://gephi.org/ 安装 下一步默认安装即可 打开安装插件 打开后发现提示无法连接,并且可用插件显示为0 (我更新过所以不为0) 点击"代理配置" 设置 ...

  7. JanusGraph ,生产环境安装

    Part 1 Janusgraph 所需组的准备 ######安装ElasticSearch 需要组建包括casandra 和 elasticsearsh 我们需要先在服务器上安装并准备这两个环境.首 ...

  8. java 连接janusgraph_基于JanusGraph的大数据图数据库

    导读 知识图谱是近来很火的概念,很多领域都希望能用知识图谱解决一些问题.在零售领域其实也有使用知识图谱的场景,比如阿里使用知识图谱进行商品智能导购以及商品"巡检",而我想试验着把知 ...

  9. atlas安装需要kafka吗_Atlas 2.1.0 实践(2)—— 安装Atlas

    在完成Atlas编译以后,就可以进行Atlas的安装了.Atlas的安装主要是安装Atlas的Server端,也就Atlas的管理页面,并确保Atlas与Kafka Hbase Solr等组件的集成. ...

最新文章

  1. 乐山市2021年高考成绩查询,四川乐山2021年普通高考报名人数 实际高考参考人数...
  2. spark-1.5.2集群安装
  3. c# 访问hbase_C#教程之通过Thrift实现C#与Hbase交流
  4. matlab等待按键响应,matlab中figure对象的按键响应
  5. JavaSE基础知识(5)—面向对象(5.3访问修饰符)
  6. 数学狂想曲(三)——统计杂谈, PID算法, 20世纪10大算法, 矩阵向量的积
  7. / ./ ../ 的区别
  8. 批处理顺序执行多条命令
  9. [持续更新] Spring Boot -Maven 指令打包相关记录
  10. 架构师的主要职责是什么?
  11. 红橙黄绿青蓝紫 RGB值 16进制 、10进制
  12. 电路分析基础笔记(静态电路+动态电路)
  13. eregi php7.0,关于php:已弃用:函数eregi()已弃用
  14. 国庆节,企查查我来啦~
  15. 无人机航测技术的优势有哪些?
  16. Vultr 修改 Root 账户密码教程
  17. 知乎热议!谷歌员工,在家办工要降薪25%?
  18. 渗透测试类型(白盒测试、黑盒测试)和漏洞扫描器
  19. PS打不开php,ps卡住了没保存怎么办?
  20. 程序员不得不学的操作系统知识(三)

热门文章

  1. css毛玻璃效果白边_css3毛玻璃效果白边问题_html/css_WEB-ITnose
  2. 小米笔记本引导修复_知识帖,笔记本电脑不能开机?你可以试试这些办法
  3. ad16自动布线设置规则_设计 | 18种pcb设计特殊布线的画法与技巧!
  4. 在每个运行中运行多个查询_Spring Data JPA的运行原理及几种查询方式
  5. python的三种结构_Python控制结构,python
  6. 和catch的区别_BIO、NIO、AIO 的区别是什么?
  7. python什么元素为真_如何使用Python基础内置函数
  8. pythonwx功能_python中wx模块的具体使用方法
  9. linux文件传输到另一台linux,使用scp将文件/目录拷贝到另一台Linux主机上
  10. python用turtle画皮卡丘_用Python的turtle作画(2)——皮卡丘