Coder Social home page Coder Social logo

Comments (2)

rotten avatar rotten commented on August 28, 2024 1

It is somewhat cumbersome, but the approach I took this afternoon that seems to work using the kbastani/spark-neo4j docker based solution. [ https://github.com/kbastani/spark-neo4j ]

  1. Use neo4j-shell to export a graphml of my subgraph of interest by running it with a cypher query from my production 2.3.2 database.
  2. Use a chain of 'sed' commands to rename all of my edges in the graphml export file to have the same name. (The sed rename is much faster than cypher in this case)
  3. Open the app_graphdb_1 docker shell, and install the 2.3.2 version of neo4j-shell-tools. Restart the shell to pick them up. (stop/start neo4j doesn't work in my docker vm anyway)
  4. scp the edge-renamed graphml into my docker instance.
  5. Import it with neo4j-shell.
  6. Run the pagerank service.
  7. Export the nodes with their page rank back out. (neo4j-shell again)
  8. Copy that file over to the original graph database instance.
  9. Load the page ranks back in.

So far it seems to be much faster than Graphaware's noderank (which runs for days and never converges), and doesn't run out of memory like Python Graph-Tool. (which can also soak up the graphml export). I'm still experimenting with the end-to-end process, meanwhile I wanted to share what I came up with today to leverage these really sweet tools until @kbastani has time to help us get to direct support of the 2.3.x neo4j releases.

from neo4j-mazerunner.

rotten avatar rotten commented on August 28, 2024

I'm using 2.3.2. I was unable to get mazerunner to work with that either. There isn't an easy way to downgrade from 2.3.2 to 2.2.1. Any other suggestions for getting it to work?

If I wanted to export the edge list from Neo4j with Cypher and then upload the page rank results independently as well, is there a subset of these docker containers that I can use to still leverage some of the fine work here, but not have to figure out how to reload my hundreds of millions of nodes and relationships into an older Neo4j instance?

from neo4j-mazerunner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.