1

I am new to DSE graphs. I have around 1000 records in a csv file, where each record has around 20 attributes, which I want to load in gremlin. All the records would form a separate vertex in the graph.

Is there a way to directly load all the records in one go. I found this link that used storage backend as DynamoDB but that link didn't help. I have my backend as DSE Cassandra.

I also tried populating the Cassandra DB with the records and then trying to form graph using this data but it didn't work.

Please let me know if there is way to do the required. Thanks in advance.

Daksh Agarwal
  • 167
  • 2
  • 12

1 Answers1

2

The DSE Graph Loader is a standalone tool can load CSV documents into DSE Graph. You would need to create a mapping script to use with the loader. You can find its documentation at https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/graph/dgl/dglCSV.html

Jason Plurad
  • 6,682
  • 2
  • 18
  • 37
  • That doesn't help either. File.csv() is throwing this error:: No signature of method: static java.io.File.csv() is applicable for argument types: (java.lang.String) values – Daksh Agarwal May 25 '17 at 09:32
  • Have you successfully run any of the Datastax graph loader examples? https://github.com/datastax/graph-examples/tree/master/northwind – Jason Plurad May 25 '17 at 14:37