How to write messages received from PubSub to a text file in GCS using TextIO in Apache Beam? Saw some methods like withWindowedWrites() and withFilenamePolicy() but couldn't find any example of it in the documentation.
相关问题
- Why do Dataflow steps not start?
- Cannot upload large file to Google Cloud Storage
- Google Cloud Storage requests are slow using Paper
- Mounting a gcePersistentDisk kubernetes volume is
- compute engine use gsutil to download tgz file has
相关文章
- Apply TensorFlow Transform to transform/scale feat
- Google Storage access based on IP Address
- gsutil / gcloud storage file listing sorted date d
- Kafka to Google Cloud Platform Dataflow ingestion
- Need help understanding the Firebase Storage CDN
- How to run dynamic second query in google cloud da
- How to upload an image from web into Google Cloud
- How do I use MapElements and KV in together in Apa
Here is an example provided you are using the Java SDK (BEAM 2.1.0).
You can see the defaults that the SDK uses for the file naming by exploring the "expand" method in TextIO.Write.expand(PCollection input). Specifically I'd take a look at DefaultFilenamePolicy.java