Skip to content

Instantly share code, notes, and snippets.

@sarveshseri
Last active September 19, 2019 22:36
Show Gist options
  • Save sarveshseri/794753af2a49d1c242c974ce83ec0c8f to your computer and use it in GitHub Desktop.
Save sarveshseri/794753af2a49d1c242c974ce83ec0c8f to your computer and use it in GitHub Desktop.
neptune things
hosts: [your-neptune-endpoint]
port: 8182
connectionPool: { enableSsl: true, trustCertChainFile: "SFSRootCAG2.pem"}
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}

The trustCertChainFile can be be downloaded from - https://www.amazontrust.com/repository/SFSRootCAG2.pem

https://docs.aws.amazon.com/en_pv/neptune/latest/userguide/access-graph-gremlin-differences.html

Connecting

start gremlin

bin/gremlin.sh

connect to neptune

gremlin> :remote connect tinkerpop.server conf/neptune-remote.yaml

open remote console

gremlin> :remote console

do a query

gremlin> g.V().limit(1)

Neptune now supports Tinkerpop 3.4 https://aws.amazon.com/blogs/database/amazon-neptune-now-supports-tinkerpop-3-4-features/

Arcade Analytics - https://github.com/ArcadeAnalytics/arcadeanalytics
https://arcadeanalytics.com/amazon-neptune-hands-on/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment