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

Dataflow to BQ #48

Closed
bmd-andyputra opened this issue Aug 21, 2019 · 1 comment
Closed

Dataflow to BQ #48

bmd-andyputra opened this issue Aug 21, 2019 · 1 comment

Comments

@bmd-andyputra
Copy link

bmd-andyputra commented Aug 21, 2019

Hi,

I'm trying to use dataflow as bridge from kafka to bigquery, but for each topic created in kafka, i need to create 1 dataflow and that will result in huge cost. is there any way to read multiple topic to produce multiple table in bigquery using only 1 dataflow?

i'm using this dataflow template
https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/master/src/main/java/com/google/cloud/teleport/templates/KafkaToBigQuery.java

@bvolpato
Copy link
Contributor

bvolpato commented Feb 6, 2023

The parameters support reading from multiple topics:

  @TemplateParameter.Text(
      order = 2,
      optional = true,
      regexes = {"[,a-zA-Z0-9._-]+"},
      description = "Kafka topic(s) to read input from.",
      helpText = "Kafka topic(s) to read input from.",
      example = "topic1,topic2")
  String getKafkaReadTopics();

Please use topic1,topic2, etc, to read from many topics, instead of creating multiple jobs.

--

This issue has been stale for some time now. Please reopen it if there is a follow up or any related questions.

@bvolpato bvolpato closed this as completed Feb 6, 2023
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