How to I import data from csv to gcp datastore

Viewed 402

I have been trying to import a sample nosql db to gcp datastore. when stored in gcs datastore is asking for data in specific extension i.e .overall_export_metadata.

1 Answers

I don't believe there are any existing tools that can just import a CSV into datastore. You could write a Google Dataflow job to do this.

https://beam.apache.org/documentation/programming-guide/

https://cloud.google.com/dataflow/docs/quickstarts

It does look like they provide a template-based job that takes in a JSON file and writes it to datastore

https://cloud.google.com/dataflow/docs/guides/templates/provided-batch#gcstexttodatastore

JSON format:

https://cloud.google.com/datastore/docs/reference/data/rest/v1/Entity

Related