[neo4j] Using a remote neo4j DB from Gremlin Console…

744 views
Skip to first unread message

Dave vU

unread,
Oct 9, 2016, 5:10:55 AM10/9/16
to Gremlin-users
I have followed the different tutorials and have no trouble playing around with a gremlin server+console set-up with TinkerGraph, or talking directly to a gremlin server running a neo4j DB (using gremlin-python), but I can't seem to figure out how to talk to a remote neo4j server via gremlin console. Is that even possible?

The closest console conf file seems to be remote-objects.yaml:

hosts: [localhost]
port
: 8182
serializer
: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0,
              config
: { ioRegistries: [org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistry] }}

But obviously, it would need a serializer that works with neo4j… Except I cannot seem to find any.

Is it possible to use serialisation with Gremlin console and a remote neo4j server?

If not, what would be the simplest way to do things like creating indexes etc, that cannot be done through gremlin-python?

Robert Dale

unread,
Oct 9, 2016, 6:59:37 AM10/9/16
to gremli...@googlegroups.com
If you only need to create indexes and such, then you can execute
cypher with gremlin on an embedded neo4j (console or server).
http://tinkerpop.apache.org/docs/3.2.2/reference/#_indices

If you require a remote, standalone neo4j 3.x, there's a new bolt
driver https://github.com/SteelBridgeLabs/neo4j-gremlin-bolt . We
haven't heard any user experience reports, so if you do use it, it
would be great to hear about it.
> --
> You received this message because you are subscribed to the Google Groups
> "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gremlin-user...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gremlin-users/6e7d9cff-5cf5-45f1-8d4d-fedd53184767%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Robert Dale

Dave vU

unread,
Oct 10, 2016, 7:26:35 PM10/10/16
to Gremlin-users
Thanks, I somehow missed the part on cypher in the Tinkerpop doc!

I think that will do for now. I am really trying to minimise the number of experimental parts in our set-up.
Reply all
Reply to author
Forward
0 new messages