-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-6498] Migrate Zookeeper configuration options #4123
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
Changes from all commits
51851b0
2ceeba4
b336d69
5beb0bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,14 +58,6 @@ public class HighAvailabilityOptions { | |
| key("high-availability.storageDir") | ||
| .noDefaultValue() | ||
| .withDeprecatedKeys("high-availability.zookeeper.storageDir", "recovery.zookeeper.storageDir"); | ||
|
|
||
| /** | ||
| * The ZooKeeper quorum to use, when running Flink in a high-availability mode with ZooKeeper. | ||
| */ | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_QUORUM = | ||
| key("high-availability.zookeeper.quorum") | ||
| .noDefaultValue() | ||
| .withDeprecatedKeys("recovery.zookeeper.quorum"); | ||
|
|
||
|
|
||
| // ------------------------------------------------------------------------ | ||
|
|
@@ -92,6 +84,14 @@ public class HighAvailabilityOptions { | |
| // ZooKeeper Options | ||
| // ------------------------------------------------------------------------ | ||
|
|
||
| /** | ||
| * The ZooKeeper quorum to use, when running Flink in a high-availability mode with ZooKeeper. | ||
| */ | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_QUORUM = | ||
| key("high-availability.zookeeper.quorum") | ||
| .noDefaultValue() | ||
| .withDeprecatedKeys("recovery.zookeeper.quorum"); | ||
|
|
||
| /** | ||
| * The root path under which Flink stores its entries in ZooKeeper | ||
| */ | ||
|
|
@@ -100,6 +100,46 @@ public class HighAvailabilityOptions { | |
| .defaultValue("/flink") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.root"); | ||
|
|
||
| public static final ConfigOption<String> HA_ZOOKEEPER_NAMESPACE = | ||
| key("high-availability.zookeeper.path.namespace") | ||
| .noDefaultValue() | ||
| .withDeprecatedKeys("recovery.zookeeper.path.namespace"); | ||
|
|
||
| public static final ConfigOption<String> HA_ZOOKEEPER_LATCH_PATH = | ||
| key("high-availability.zookeeper.path.latch") | ||
| .defaultValue("/leaderlatch") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.latch"); | ||
|
|
||
| /** ZooKeeper root path (ZNode) for job graphs. */ | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_JOBGRAPHS_PATH = | ||
| key("high-availability.zookeeper.path.jobgraphs") | ||
| .defaultValue("/jobgraphs") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.jobgraphs"); | ||
|
|
||
| public static final ConfigOption<String> HA_ZOOKEEPER_LEADER_PATH = | ||
| key("high-availability.zookeeper.path.leader") | ||
| .defaultValue("/leader") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.leader"); | ||
|
|
||
| /** ZooKeeper root path (ZNode) for completed checkpoints. */ | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_CHECKPOINTS_PATH = | ||
| key("high-availability.zookeeper.path.checkpoints") | ||
| .defaultValue("/checkpoints") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.checkpoints"); | ||
|
|
||
| /** ZooKeeper root path (ZNode) for checkpoint counters. */ | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_CHECKPOINT_COUNTER_PATH = | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for your reply. In addition to the zookeeper options, there're some other options such as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well isn't that great. OK, keep the prefix for the HA options, but remove it for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's nice, and I have fixed it. Thanks :) |
||
| key("high-availability.zookeeper.path.checkpoint-counter") | ||
| .defaultValue("/checkpoint-counter") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.checkpoint-counter"); | ||
|
|
||
| /** ZooKeeper root path (ZNode) for Mesos workers. */ | ||
| @PublicEvolving | ||
| public static final ConfigOption<String> HA_ZOOKEEPER_MESOS_WORKERS_PATH = | ||
| key("high-availability.zookeeper.path.mesos-workers") | ||
| .defaultValue("/mesos-workers") | ||
| .withDeprecatedKeys("recovery.zookeeper.path.mesos-workers"); | ||
|
|
||
| // ------------------------------------------------------------------------ | ||
| // ZooKeeper Client Settings | ||
| // ------------------------------------------------------------------------ | ||
|
|
@@ -128,6 +168,10 @@ public class HighAvailabilityOptions { | |
| key("high-availability.zookeeper.path.running-registry") | ||
| .defaultValue("/running_job_registry/"); | ||
|
|
||
| public static final ConfigOption<String> ZOOKEEPER_CLIENT_ACL = | ||
| key("high-availability.zookeeper.client.acl") | ||
| .defaultValue("open"); | ||
|
|
||
| // ------------------------------------------------------------------------ | ||
|
|
||
| /** Not intended to be instantiated */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this one. @tillrohrmann are
high-availability.storageDirandhigh-availability.zookeeper.storageDirequivalent?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think so.