Hi Krzysztof,

Xintong has share some information about the configuration. I just want to
provide some additional
information.

>> How JobManager and TaskManager find each other?
For non-HA Flink cluster, the taskmanager should have the pre-configured
jobmanager address.
For HA Flink cluster, the leader retriever service is used for taskmanager
to get the jobmanager
address. Currently, Flink provide the zookeeper implementation. And it has
been widely used in
production.

>> Can it be configure to use domain names instead IP's?
It could be a domain name. But you should make sure the it could be
resolved by other jobmanager/
taskmanagers.

>> What I have to do to have two Flink Clusters in same IP network?
I am not sure what do you mean. Do you mean you have a NAT network and
multiple docker containers
will share a internal ip address?

>> How I should start task manager in order to tell him, to connect to
cluster B not A?
Just like i have said in the first section. For non-HA Flink cluster, you
need to specify the jobmanager rpc
address and port. For HA Flink cluster, you do not need to do anything.


Best,
Yang


Xintong Song <tonysong...@gmail.com> 于2020年2月21日周五 上午11:41写道:

> Hi Krzysztof,
>
> You can use the following configuration options to specify JM/TM addresses
> and ports.
> - jobmanager.rpc.address
> - jobmanager.rpc.port
> - taskmanager.host
> - taskmanager.rpc.port
>
> The configuration accepts both IP addresses and hostnames.
>
> If you have two Flink Clusters, you can specify different JM address/ports
> in your TM configurations, so the TM knows which JM to connect to.
>
> Thank you~
>
> Xintong Song
>
>
>
> On Fri, Feb 21, 2020 at 6:38 AM KristoffSC <krzysiek.chmielew...@gmail.com>
> wrote:
>
>> Hi all,
>> I was wondering how JobManager and TaskManager find each other?
>> Do they use multicast for this?
>>
>> Can it be configure to use domain names instead IP's?
>> What I have to do to have two Flink Clusters in same IP network?
>> How I should start task manager in order to tell him, to connect to
>> cluster
>> B not A?
>>
>> Regards,
>> Krzysztof
>>
>>
>>
>> --
>> Sent from:
>> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
>>
>

Reply via email to