Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write to jdbc/database #9

Open
0x0ece opened this issue Feb 20, 2016 · 3 comments
Open

Write to jdbc/database #9

0x0ece opened this issue Feb 20, 2016 · 3 comments

Comments

@0x0ece
Copy link

0x0ece commented Feb 20, 2016

Hi, possibly related to #3, could you provide a hint on where to start to write a jdbc output?
Ideally I'd like to read from a streaming source, do some computation, and write in a db instead of TextIO.

I have a running dataflow pipeline (with output via TextIO), and I saw examples on Flink's DataSet to write to a database via jdbc. I feel I'm close, but I need a hint on how to connect the dots, e.g. how to extract a dataset from a (streaming) pipeline?

Thank you much, E.

@mxm
Copy link
Contributor

mxm commented Feb 21, 2016

Hi @ecesena! There is a pending issue #6 to integrate sinks into the streaming support. We plan to add it very soon. We would provide you with the generic interface Write.Bound to implement your own sinks. Like for the sources, a wrapper for Flink's sinks will be introduced such that you can reuse the existing sinks (e.g. JDBC, RollingFileSink, Kafka, ..).

@0x0ece
Copy link
Author

0x0ece commented Feb 25, 2016

Thanks @mxm, in the meantime I hacked a Kafka sink, then it's relatively easy to push from there into any db. Do you have already a rough timeline by chance?

@mxm
Copy link
Contributor

mxm commented Mar 16, 2016

Sorry for the late reply, we'll add support very soon in Apache Beam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants