

For example, the equivalent Cypher query would be the following: MATCH (a)->(b) The nodes that are connected by that relationship will form the graph that will be analyzed. Graph analysis jobs are started by accessing the following endpoint: To choose an analysis to start running, replace in the URL above with a relationship type in your Neo4j database. If you're wanting to test this deployment on your development machine and are using boot2docker on MacOSX, follow the directions here to access the Neo4j browser on your environment. The Neo4j browser is exposed as a container on port 7474. Read the setup guide for kbastani/docker-neo4j for additional details. To use an existing Neo4j database, make sure that the database store directory, typically data/graph.db, is available on your host OS. # with the location to your existing Neo4j database store directoryĭocker run -d -P -v /Users///data:/opt/data -name graphdb -link mazerunner:mazerunner -link hdfs:hdfs kbastani/docker-neo4j # Create Neo4j database with links to HDFS and Mazerunner # Create HDFSĭocker run -i -t -name hdfs sequenceiq/hadoop-docker:2.4.1 /etc/bootstrap.sh -bashĭocker run -i -t -name mazerunner -link hdfs:hdfs kbastani/neo4j-graph-analytics Pull the following docker images: docker pull sequenceiq/hadoop-docker:2.4.1ĭocker pull kbastani/neo4j-graph-analytics:latestĪfter each image has been downloaded to your Docker server, run the following commands in order to create the linked containers. Apache Spark Service (kbastani/neo4j-graph-analytics:latest).


Neo4j Graph Database (kbastani/docker-neo4j:latest).Hadoop HDFS (sequenceiq/hadoop-docker:2.4.1).Installation requires 3 docker image deployments, each containing a separate linked component. The results of the analysis are applied back to the nodes in Neo4j as property values, making the results queryable using Cypher. The Neo4j server is extended using an unmanaged extension that adds a REST API endpoint to Neo4j for submitting graph analysis jobs to Apache Spark GraphX. There are four supported graph analysis algorithms available in this version of the image.Įach of these algorithms come default with Spark GraphX.
