I tried looking for Firebase I/O connectors for Firebase but wasn’t able to find one. Can someone please help me in doing so, or someone has a Firebase I/O connector with them to read and write my files, please help me with it.
Thanks in Advance.
I tried looking for Firebase I/O connectors for Firebase but wasn’t able to find one. Can someone please help me in doing so, or someone has a Firebase I/O connector with them to read and write my files, please help me with it.
Thanks in Advance.
2
Answers
Go to Apache Beam official website
Find
Documentation
in the header.Inside you’ll see
I/O Connectors
, click on it: I/O Connectors.Find
Firestore IO
in the list, then read its Javadoc.Or maybe you need
Datastore IO
(for older versions I guess), here’s the Javadoc.Please note that you need to choose the data base you’re using.
There is the following interesting link from the official
Google
documentation, showing a read and write example withBeam
Java
:https://cloud.google.com/blog/topics/developers-practitioners/using-firestore-and-apache-beam-data-processing
The link to the Javadoc :
https://beam.apache.org/releases/javadoc/2.41.0/org/apache/beam/sdk/io/gcp/firestore/FirestoreIO.html
You can also check this link showing an example of
write
withFirestoreIO
:Add document to Firestore from Beam with auto generated ID
For
Python
, I think there is no open sourceIO
now onBeam
, but you can use theFirestore
client in aParDo
andDoFn
, here a link showing an example :Using FireStore in Google Dataflow