janusgraph单机版安装
注:本次安装janusgraph基于es和hbse,所以先安装es和hbase
1.安装jdk
2.安装janusgraph
-
unzip janusgraph-0.3.1-hadoop2.zip
-
配置启动配置文件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
-
配置启动配置文件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
-
启动: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的官方文档