suez1224 commented on a change in pull request #7978: [FLINK-11910] [Yarn] add
customizable yarn application type
URL: https://github.com/apache/flink/pull/7978#discussion_r272401341
##########
File path:
flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
##########
@@ -988,7 +992,7 @@ public ApplicationReport startAppMaster(
final String customApplicationName = customName != null ?
customName : applicationName;
appContext.setApplicationName(customApplicationName);
- appContext.setApplicationType("Apache Flink");
+ appContext.setApplicationType(applicationType.isEmpty() ?
"Apache Flink" : applicationType);
Review comment:
Can't we just do the following?
appContext.setApplicationType(dynProperties.getOrDefault("application-type",
"Apache Flink"));
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services