Reputation: 31
I want to load data into titanDB and i know about bulkloading and gremlin script will do that but i want to do the same using spark. i have data in json format and i want to load it using spark. They integrate the spark with titan in titan 0.9 and 1.0.0. but using SparkGraphComputer i can read the data from titan but i want to do opposite of it, i want to write data into titan using spark
References http://tinkerpop.apache.org/docs/3.1.0-incubating/#sparkgraphcomputer
https://groups.google.com/forum/#!topic/aureliusgraphs/DGwJnpdHPmU
Upvotes: 0
Views: 784
Reputation: 46206
You need to use TinkerPop's BulkLoaderVertexProgram
:
http://s3.thinkaurelius.com/docs/titan/1.0.0/titan-hadoop-tp3.html
You can see some examples of how it works in this Titan data migration sample repository:
https://github.com/dkuppitz/openflights
as well as this example for loading data via CSV:
https://groups.google.com/forum/#!msg/gremlin-users/AetuGcLiBxo/KW966WAyAQAJ
Upvotes: 3