You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/01/07 11:32:09 UTC

[GitHub] [flink] tillrohrmann commented on a change in pull request #14577: [FLINK-20866][yarn] Set high-availability.cluster-id to application id if not configured

tillrohrmann commented on a change in pull request #14577:
URL: https://github.com/apache/flink/pull/14577#discussion_r553273001



##########
File path: flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
##########
@@ -1781,6 +1781,12 @@ private void setClusterEntrypointInfoToConfig(final ApplicationReport report) {
 
         flinkConfiguration.set(
                 YarnConfigOptions.APPLICATION_ID, ConverterUtils.toString(clusterId));
+
+        // set cluster-id to app id if not specified
+        if (!flinkConfiguration.contains(HighAvailabilityOptions.HA_CLUSTER_ID)) {

Review comment:
       Ok, let me see what I can simplify here.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org