-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-20866][yarn] Set high-availability.cluster-id to application id if not configured #14577
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
Conversation
…d if not configured In order to easily connect to an HA enabled Yarn cluster, this commit sets the high-availability.cluster-id to the application id if not configured. This is symmetric to how we deploy HA enabled clusters and makes it unnecessary to explicitly set the high-availability.cluster-id if one tries to reconnect to the cluster.
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 615f3b2 (Fri May 28 07:03:11 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
| YarnConfigOptions.APPLICATION_ID, ConverterUtils.toString(clusterId)); | ||
|
|
||
| // set cluster-id to app id if not specified | ||
| if (!flinkConfiguration.contains(HighAvailabilityOptions.HA_CLUSTER_ID)) { |
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.
Should we deduplicate/sync this block with the one in #startAppMaster?
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.
Ok, let me see what I can simplify here.
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.
Ok, I've removed YarnClusterDescriptor.zookeeperNamespace as it seems to be no longer used.
| flinkConfiguration.set( | ||
| YarnConfigOptions.APPLICATION_ID, ConverterUtils.toString(clusterId)); | ||
|
|
||
| // set cluster-id to app id if not specified |
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.
maybe rename the clusterId variable to appId
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.
Jup, good idea.
zentol
left a comment
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.
+1 functionality-wise, but ideally we do some small cleanups while we're at it.
…ation id if not configured
The YarnClusterDescriptor.zookeeperNamespace has been replaced by the configuration which is deployed together with the Yarn cluster. Hence, it is no longer needed.
|
Thanks for the review @zentol. I've addressed your comments and updated this PR. |
zentol
left a comment
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.
+1
…d if not configured In order to easily connect to an HA enabled Yarn cluster, this commit sets the high-availability.cluster-id to the application id if not configured. This is symmetric to how we deploy HA enabled clusters and makes it unnecessary to explicitly set the high-availability.cluster-id if one tries to reconnect to the cluster. This closes apache#14577.
…d if not configured In order to easily connect to an HA enabled Yarn cluster, this commit sets the high-availability.cluster-id to the application id if not configured. This is symmetric to how we deploy HA enabled clusters and makes it unnecessary to explicitly set the high-availability.cluster-id if one tries to reconnect to the cluster. This closes apache#14577.
…d if not configured In order to easily connect to an HA enabled Yarn cluster, this commit sets the high-availability.cluster-id to the application id if not configured. This is symmetric to how we deploy HA enabled clusters and makes it unnecessary to explicitly set the high-availability.cluster-id if one tries to reconnect to the cluster. This closes #14577.
What is the purpose of the change
In order to easily connect to an HA enabled Yarn cluster, this commit sets the
high-availability.cluster-id to the application id if not configured. This is
symmetric to how we deploy HA enabled clusters and makes it unnecessary to
explicitly set the high-availability.cluster-id if one tries to reconnect
to the cluster.
Verifying this change
Added
YARNHighAvailabilityITCase.testClusterClientRetrievalDoes this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation