HA
Scenarios
The Flink HA mode depends on ZooKeeper. Therefore, ZooKeeper-related configuration items must be set.
Configuration Description
Configuration items include the ZooKeeper address, path, and security certificate.
Parameter |
Description |
Default Value |
Mandatory |
---|---|---|---|
high-availability |
Whether HA is enabled. Only the following two modes are supported currently:
|
zookeeper |
No |
high-availability.zookeeper.quorum |
ZooKeeper quorum address. |
Automatic configuration |
No |
high-availability.zookeeper.path.root |
Root directory that Flink creates on ZooKeeper, storing metadata required in HA mode. |
/flink |
No |
high-availability.storageDir |
Directory for storing JobManager metadata of state backend. ZooKeeper stores only pointers to actual data. |
hdfs:///flink/recovery |
No |
high-availability.zookeeper.client.session-timeout |
Session timeout duration on the ZooKeeper client. The unit is millisecond. |
60000 |
No |
high-availability.zookeeper.client.connection-timeout |
Connection timeout duration on the ZooKeeper client. The unit is millisecond. |
15000 |
No |
high-availability.zookeeper.client.retry-wait |
Retry waiting time on the ZooKeeper client. The unit is millisecond. |
5000 |
No |
high-availability.zookeeper.client.max-retry-attempts |
Maximum retry times on the ZooKeeper client. |
3 |
No |
high-availability.job.delay |
Delay of job restart when JobManager recovers. |
The default value is the same as the value of akka.ask.timeout. |
No |
high-availability.zookeeper.client.acl |
ACL (open creator) of the ZooKeeper node. |
This parameter is configured automatically according to the cluster installation mode.
|
Yes |
zookeeper.sasl.disable |
Simple authentication and security layer (SASL)-based certificate enable switch. |
This parameter is configured automatically according to the cluster installation mode.
|
Yes |
zookeeper.sasl.service-name |
|
zookeeper |
Yes |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.