I'm trying to understand how parallelism in Flink works. This doc https://ci.apache.org/projects/flink/flink-docs-release-1.9/concepts/programming-model.html seems to suggest that the sink has parallelism equal to 1. In my case, I'm writing to HBase in my sink - does this mean that there is only one task (thread?) which will be writing to HBase? Does it not get the global parallelism set for the application?
2 Answers
Does this mean there is only one task(thread) writing to HBase when parallelism equals to one?
Yes. Generally, the parallelism is the number of an operator's tasks that are running at the same time. By default it equals to the global parallelism you set.
3 Comments
frodo
I guess my question was - does the sink always have parallelism 1? or does it get the global parallelism?
Jiayi Liao
@frodo, it doesn't has any limitation on parallelism and you can set it to any value as long as being less than max parallelism and your resources limit.
Cecilia
What is global parallelism?@frodo