Search code examples
amazon-web-servicesgremlinamazon-vpctinkerpop3amazon-neptune

How to check if gremlin is properly connected to aws neptune instance


I have launched an aws neptune instance and installed apache-tinkerpop-gremlin-console version 3.3.3 on windows 10 machine.

neptune-remote.yml looks like:

hosts: [abc-nept.XXXXXX.us-XXXX-1.neptune.amazonaws.com]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}

after running gremlin.bat next command is:

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

Now at this stage I am able to make queries and those are working! So question is how can I check whether I am actually connected to aws neptune instance or not?


Solution

  • I assume your question is related to having multiple :remote instances configured. Obviously, if you've simply created:

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

    then the only place your data could be going to or coming from is Neptune. The Console does allow multiple :remote instance that you can switch between so if you also had one for a local Gremlin Server then you might want to confirm which one you're sending requests. You just do this:

    gremlin> :remote
    ==>Remote - Gremlin Server - [localhost/127.0.0.1:8182]
    

    You'll be able to see the "current" :remote and thus know whether it is for Neptune or your local Gremlin Server instance.