Skip to content

Instantly share code, notes, and snippets.

@boydc7
Created August 17, 2018 15:51
Show Gist options
  • Save boydc7/0b5b02f594004254757d043ef65a838f to your computer and use it in GitHub Desktop.
Save boydc7/0b5b02f594004254757d043ef65a838f to your computer and use it in GitHub Desktop.
Gremlin Console to AWS Neptune
# Download gremlin console (http://tinkerpop.apache.org/downloads.html), then:
unzip apache-tinkerpop-gremlin-console-3.3.3-bin.zip
cd apache-tinkerpop-gremlin-console-3.3.3-bin
# in /conf, create a neptune yaml file with following properties (see https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-console.html)
hosts: [AWS NEPTUNE ENDPOINT]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}
# Run gremlin console
bin/gremlin.sh
# Inside gremlin console, connect to neptune db instance:
:remote connect tinkerpop.server conf/neptune-dev.yaml
# Switch to remote mode inside gremlin
:remote console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment