Skip to content

Load data

Set up Gremlin Console

  1. Download the latest version of the Gremlin Console from the Apache website.

    Gremlin Console is a command-line interface for interacting with graph databases using the Gremlin query language.

  2. Unzip the downloaded package to a directory of your choice.

  3. Navigate to the Gremlin Console application folder and start the console with the following command:

    Terminal window
    ./bin/gremlin.sh
  4. Connect to the running AGS Docker image.

    Terminal window
    g = traversal().withRemote(DriverRemoteConnection.using("localhost", 8182, "g"));
    Example response
    Terminal window
    graphtraversalsource[emptygraph[empty], standard]

Load the data

Load the air-routes data set into AGS with the following command in the Gremlin console:

Terminal window
g.with("evaluationTimeout", 24 * 60 * 60 * 1000) \
.call("aerospike.graphloader.admin.bulk-load.load") \
.with("aerospike.graphloader.vertices", "/opt/aerospike-graph/data/vertices") \
.with("aerospike.graphloader.edges", "/opt/aerospike-graph/data/edges").next()
Example response
Terminal window
==> Success
Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?