zoukankan      html  css  js  c++  java
  • janusgraph单机版安装

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

    1.安装jdk

    2.安装janusgraph

    1. 解压安装文件至/usr/janusgraph-0.3.1

      unzip janusgraph-0.3.1-hadoop2.zip
    2. 配置启动配置文件conf/gremlin-server/gremlin-server.yaml

      //配置服务器websocket和http同时支持
      channelizer: org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
      //配置打开的图指定的配置文件路径
      graph: conf/gremlin-server/janusgraph-hbase-es.properties
      maxInitialLineLength: 4096
      maxHeaderSize: 8192
      maxChunkSize: 8192
      maxContentLength: 65536
      maxAccumulationBufferComponents: 1024
      resultIterationBatchSize: 64
      writeBufferLowWaterMark: 32768
      writeBufferHighWaterMark: 65536
      //
      threadPoolWorker: 10
      //线程池大小
      gremlinPool: 10
    3. 配置启动配置文件conf/gremlin-server/janusgraph-hbase-es.properties

      //配置存储后端为hbase
      storage.backend=hbase
      //配置hbase地址和端口(zookeeper)
      storage.hostname=192.168.130.212
      storage.port=2181
      //配置索引后端为es
      index.search.backend=elasticsearch
      //配置es路径
      index.search.hostname=192.168.130.213:9200
      storage.index.search.client-only=true
      storage.index.search.local-mode=false
      storage.index.search.sniff=false
      //指定JanusGraphFactory
      gremlin.graph=org.janusgraph.core.JanusGraphFactory
      //打开允许批量导入
      storage.batch-loading=true
      //强制使用索引
      force-index=true
      //hbase上存图的表名
      storage.hbase.table=janusgraph
    4. 启动:bin/gremlin-server.sh

    3.参考资料

    [1] http://janusgraph.org/ JanusGraph官方网址

    [2] https://github.com/JanusGraph/janusgraph JanusGraph的github源码网址

    [3] https://docs.janusgraph.org/latest/index.html JanusGraph的官方文档

  • 相关阅读:
    二叉索引树
    将rst转换为markdown格式
    LeetCode电话号码的字母组合题
    根据文件名列表批量复制文件
    VMware+Alpine代替Docker部署Gogs服务
    wsl安装Ubuntu16.04无法ssh提示Permission denied (publickey)
    json二位数组根据指定键名去重
    thinkphp6 关联模型如何查询已经软删除的数据
    DB2数据库配置步骤(图解)
    基于SpringBoot2.3.1进行AOP原理源码阅读
  • 原文地址:https://www.cnblogs.com/learndata/p/10550974.html
Copyright © 2011-2022 走看看