janusgraph

Graphx处理janusGraph数据实现

别来无恙 提交于 2019-12-01 17:09:48
声明: 此方案是在spark直接执行gremlinSQL方案实现受阻的情况下的备选方案,不涉及工作机密,不存在泄密可能,纯属个人思考,希望抛砖引玉 方案: 将gremlinSql的查询结果转化为startGraph,然后转写到HDFS,spark读取hdfs的starGraphJSon构建graphx可用的图,然后就可以调用graphx丰富的图计算算法;从而将实现graphX操作janusgraph的目的 1. gremlinSql的查询结果转换成starGraphJson 由于org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONWriter保存的graphSon格式无法满足需求,所以将查询出的带path的点边数据自己转换成单点图的json结构,转化方法如下,然后存到hdfs,存储方法不再赘述。 public StringBuilder generatorStarGraphJson(Vertex vertex, Edge edge, StringBuilder starGraphJson){ String inVId; String outVId; String VId; starGraphJson.append("{").append("\"id\":"+vertex.id()+","+"\"label\":\""

GUI for building JanusGraph DB [closed]

一笑奈何 提交于 2019-11-30 10:04:41
I am exploring JanusGraph DBs and require visual editing, like MySQL workbench. I found some visual editors for Neo4j . Are there any visual editors for JanusGraph as well? or can those tools be used with JanusGraph? Per JanusGraph's README : To visualize graphs stored in JanusGraph, you can use any of the following tools: Cytoscape Gephi plugin for Apache TinkerPop Graphexp KeyLines by Cambridge Intelligence Linkurious 来源: https://stackoverflow.com/questions/47254804/gui-for-building-janusgraph-db

JanusGraph : Please add a key named “ConfigurationManagementGraph” to the “graphs”

≡放荡痞女 提交于 2019-11-29 16:10:15
I get the this error in gremlin console cegprakash@cegprakash:~/workspace/janusgraph-0.2.1-hadoop2$ ./bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: janusgraph.imports plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/cegprakash/workspace/janusgraph-0.2.1-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/cegprakash/workspace/janusgraph-0.2.1-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j

How can I remotely connect to a JanusGraph server?

别等时光非礼了梦想. 提交于 2019-11-29 04:29:31
I want to use Java API to manipulate graph on a remote server, the server actually hosts in localhost. The code I use to connect server is: JanusGraphFactory.Builder b = JanusGraphFactory.build(); b.set("hosts", "[localhost]"); JanusGraph graph = b.open(); But after I run the program, it throws exception like this: Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.storage.backend So how can I connect to a remote JanusGraph server using Java API? The documentation I've found suggests to create an EmtpyGraph and get a remote traversal from that one

JanusGraph : Please add a key named “ConfigurationManagementGraph” to the “graphs”

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 08:56:22
问题 I get the this error in gremlin console cegprakash@cegprakash:~/workspace/janusgraph-0.2.1-hadoop2$ ./bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: janusgraph.imports plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/cegprakash/workspace/janusgraph-0.2.1-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in

How can I remotely connect to a JanusGraph server?

試著忘記壹切 提交于 2019-11-27 18:26:08
问题 I want to use Java API to manipulate graph on a remote server, the server actually hosts in localhost. The code I use to connect server is: JanusGraphFactory.Builder b = JanusGraphFactory.build(); b.set("hosts", "[localhost]"); JanusGraph graph = b.open(); But after I run the program, it throws exception like this: Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.storage.backend So how can I connect to a remote JanusGraph server using Java API?

GUI for building JanusGraph DB [closed]

心不动则不痛 提交于 2019-11-27 15:15:27
问题 I am exploring JanusGraph DBs and require visual editing, like MySQL workbench. I found some visual editors for Neo4j. Are there any visual editors for JanusGraph as well? or can those tools be used with JanusGraph? 回答1: Per JanusGraph's README: To visualize graphs stored in JanusGraph, you can use any of the following tools: Cytoscape Gephi plugin for Apache TinkerPop Graphexp KeyLines by Cambridge Intelligence Linkurious Of these, at least Cytoscape and Graphexp also support visual graph