1

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 2

5

The sink gets the global parallelism. To reduce it on one operator, like in that example, requires explicitly changing the parallelism on that operator.

Sign up to request clarification or add additional context in comments.

Comments

0

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

I guess my question was - does the sink always have parallelism 1? or does it get the global parallelism?
@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.
What is global parallelism?@frodo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.