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

how to implement multi-thread source generate? #2

Open
varuy322 opened this issue Dec 25, 2018 · 1 comment
Open

how to implement multi-thread source generate? #2

varuy322 opened this issue Dec 25, 2018 · 1 comment

Comments

@varuy322
Copy link

varuy322 commented Dec 25, 2018

Hi, there
1)Could you give some advice that how to implement multiply thread to generate source data to Flink?
2)It didn't print the latency value into .out file under taskmanager log, but Throughput info existed. The code couldn't jump into the branch which prevTime not equal to -1. What's more, the WindowedCount value could sink into kafka. I think it will be more convenient to read throughput and latency in local file directly rather than to read from kafka.
Someone may give some suggestion for me? Thanks a ton!

@grtheod
Copy link
Collaborator

grtheod commented Jan 4, 2019

Hi,

  1. You could just change the parallelism and adjust properly the number of records per second.
  2. If you redirect worker's output to the .out file, everything will be there. The latency measurement is not ideal, I used more like an estimation, so maybe it would be better to find an alternative way (e.g., use Kafka). In the current version, Kafka is not utilized for Flink and we manually use logs.

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