JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                JanusGraph: 可視化 Gephi 插件安裝可參考:https://datamining.blog.csdn.net/article/details/103894994
下載地址:https://github.com/bricaud/graphexp
安裝
解壓,在根目錄下修改?graphexp.html
<div class="nav input_unit_container"><label class="nav input_label" for="server_address">Server Address:</label><input name="server_address" id="server_address" value="localhost" /> </div> <div class="nav input_unit_container"><label class="nav input_label" for="server_port">Server port:</label><input name="server_port" id="server_port" type="number" value="8182"/> </div>修改為,192.168.2.111:8182?為JanusGraph服務(wù)端口
<div class="nav input_unit_container"><label class="nav input_label" for="server_address">Server Address:</label><input name="server_address" id="server_address" value="192.168.1.111" /> </div> <div class="nav input_unit_container"><label class="nav input_label" for="server_port">Server port:</label><input name="server_port" id="server_port" type="number" value="8182"/> </div>安裝ngix?參考:https://www.runoob.com/linux/nginx-install-setup.html
修改配置文件?vim /usr/local/webserver/nginx/conf/nginx.conf
error_log /var/log/error.log debug; #制定日志路徑,級別。這個設(shè)置可以放入全局塊,http塊,server塊,級別以此為:debug|info|notice|warn|error|crit|alert|emerg events {accept_mutex on; #設(shè)置網(wǎng)路連接序列化,防止驚群現(xiàn)象發(fā)生,默認(rèn)為onmulti_accept on; #設(shè)置一個進程是否同時接受多個網(wǎng)絡(luò)連接,默認(rèn)為off#use epoll; #事件驅(qū)動模型,select|poll|kqueue|epoll|resig|/dev/poll|eventportworker_connections 1024; #最大連接數(shù),默認(rèn)為512 } http {include mime.types; #文件擴展名與文件類型映射表default_type application/octet-stream; #默認(rèn)文件類型,默認(rèn)為text/plain#access_log off; #取消服務(wù)日志log_format myFormat '$remote_addr–$remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for'; #自定義格式access_log /var/log/access.log myFormat; #combined為日志格式的默認(rèn)值sendfile on; #允許sendfile方式傳輸文件,默認(rèn)為off,可以在http塊,server塊,location塊。sendfile_max_chunk 100k; #每個進程每次調(diào)用傳輸數(shù)量不能大于設(shè)定的值,默認(rèn)為0,即不設(shè)上限。keepalive_timeout 65; #連接超時時間,默認(rèn)為75s,可以在http,server,location塊。upstream mysvr {server 127.0.0.1:7878;server 192.168.10.121:3333 backup; #熱備}error_page 404 https://www.baidu.com; #錯誤頁server {keepalive_requests 120; #單連接請求上限次數(shù)。listen 4545; #監(jiān)聽端口server_name 192.168.2.111; #監(jiān)聽地址location ~*^.+$ { #請求的url過濾,正則匹配,~為區(qū)分大小寫,~*為不區(qū)分大小寫。root /opt/graphexp-master; #插件目錄}} }啟動服務(wù):/usr/local/webserver/nginx/sbin/nginx
訪問 :?http://192.168.2.111:4545/graphexp.html
提示如下成功
?
?測試效果
打開 gremlin.sh?
注意:conf/remote.yaml?文件中配置著JanusGraph服務(wù)端口
$ bin/gremlin.sh \,,,/(o o) -----oOOo-(3)-oOOo----- SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] plugin activated: janusgraph.imports plugin activated: tinkerpop.server plugin activated: tinkerpop.gephi plugin activated: tinkerpop.utilities 19:45:30 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable plugin activated: tinkerpop.hadoop plugin activated: tinkerpop.spark plugin activated: tinkerpop.tinkergraph gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>Configured 192.168.2.116:8182 gremlin> :> graph.addVertex("name", "stephen") ==>v[4128] gremlin> :> g.V().values('name') ==>stephen gremlin>數(shù)據(jù)插入成功,查詢?
?
總結(jié)
以上是生活随笔為你收集整理的JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: vim的强大,vim设置和插件的使用,脱
- 下一篇: 相机参数关系
