r/dataflow • u/fhoffa • Jun 25 '19
r/dataflow • u/fhoffa • Jun 12 '19
How to efficiently process both real-time and aggregate data with Dataflow
r/dataflow • u/fhoffa • Jun 10 '19
Apache Beam 2.13.0 (Support reading query results with the BigQuery storage API) and more
beam.apache.orgr/dataflow • u/fhoffa • May 30 '19
spotify/scio v0.8.0-alpha1: Beam 2.12, BeamSQL and BigQuery Storage API support
r/dataflow • u/fhoffa • May 23 '19
Game of Thrones Twitter Sentiment with Keras, Apache Beam, BigQuery and PubSub
r/dataflow • u/SuperMancho • May 20 '19
Streaming Pipeline - can I sideload static data into windowed results for writing?
Given a pipeline with data windowed by 2min, can I sideload static or the purposes of creating output files as one set by window?
eg:
(Stream data) - {id:3}, {id:4}
(File data) - {id:1}, {id:2}
write out files: 1.txt, 2.txt, 3.txt, 4.txt
Or is this just not possible with BEAM? Not possible, in my case, with the regression (see comments)
r/dataflow • u/fhoffa • May 14 '19
Data plumbing — Is my data pipeline processing events?
r/dataflow • u/fhoffa • Mar 01 '19
Error Handling for Apache Beam & BigQuery (Java SDK)
r/dataflow • u/fhoffa • Feb 24 '19
An approach to community building from Apache Beam
blogs.apache.orgr/dataflow • u/fhoffa • Feb 21 '19
Real-time diagnostics from nanopore DNA sequencers on Google Cloud
r/dataflow • u/jarlefo • Dec 30 '18
Slow GCS writes with TextIO in streming mode (Java, Beam 2.8.0)
Hi, I'm struggling with performance when it comes to writing data to GCS in a streaming pipeline.
The I/O of the pipeline is fairly simple, read from pubsub and write to three GCS sinks.
Source: Pubsub
- JSON objects containing a collection of datapoints
Sinks: GCS write to file
- raw output that writes every single raw pubsub message to file
- Accepted and Rejected output based on simple business logic and the contents of each datapoint (expanded pubsub message)
By the feel of it I think the bottleneck in my pipeline is writing to file. The pipeline is working processing thousands of elements/s for a short time before it completely stops for a long time where it's seemingly writing windows to file, and then starting up again. The overall performance is very poor, and cannot hold up with the incoming events to pubsub.
I am windowing and triggering individually for each sink, so that there will be fixed windows of 1 minute, trigger every 1 minute or after 1 million elements enters the window. I have also tried without FixedWindows and used GlobalWindows with the same triggering strategy, without any luck.
After looking at the logs, it seems that the writing is only handled by a single worker even though the pipeline is currently running with 50 workers, and I suspect this is the reason why it doesn't have a stable throughput but only sometimes pushes data through. I've tested changing the default gcsUploadBufferSizeBytes to 64MB from the default 1MB, and the performance might have improved slightly, but not nearly enough.
I'm not sure how to debug this further, or which resources to read up on to understand the issues I'm facing.
Hopefully someone out there knows a thing or two about these issues, and how to mitigate them. I've mainly worked with the batched version of dataflow, so the whole windowing and triggers is a bit outside my comfort zone, but I honestly don't think that's where the problem is.
The only real purpose of this pipeline is to write all pubsub messages to GCS. Event time is not interesting, so when reading in pubsub messages I'm quickly changing the ProcessContext timestamp to Instant.now() so that windowing isn't affected by event-time but only by processing time.
r/dataflow • u/fhoffa • Dec 13 '18
Explore Beam SQL: Early stage working demo instructions
r/dataflow • u/fhoffa • Nov 27 '18
Pandora chooses Google Cloud for big data and analytics
r/dataflow • u/fhoffa • Nov 02 '18
[github] anemos-io/proto-beam: Utilities for handling and converting ProtocolBuffers. Focused but not limited to Apache Beam.
r/dataflow • u/fhoffa • Oct 11 '18
[slides] Beam Summit 2018 Presentations
drive.google.comr/dataflow • u/fhoffa • Oct 04 '18
[slides] Python Streaming Pipelines with Beam on Flink - FlinkForward 2018
r/dataflow • u/fhoffa • Oct 04 '18
[slides] Flink Forward: Universal Machine Learning with Apache Beam (with TFX: TensorFlowExtended)
r/dataflow • u/fhoffa • Oct 02 '18
[slides] Beam SplittableDoFn - Alex van Boxel
r/dataflow • u/fhoffa • Sep 27 '18
[slides] (Apachecon 2018) Robust, performant and modular APIs for data ingestion with Apache Beam
r/dataflow • u/fhoffa • Sep 08 '18
Using Apache Beam in Kotlin to reduce boilerplate code
r/dataflow • u/fhoffa • Aug 13 '18
Building a real time quant trading engine on Google Cloud Dataflow and Apache Beam