wzhero1 commented on a change in pull request #9336: [FLINK-13548][Deployment/YARN]Support priority of the Flink YARN application URL: https://github.com/apache/flink/pull/9336#discussion_r318881035
########## File path: flink-yarn/src/main/java/org/apache/flink/yarn/configuration/YarnConfigOptions.java ########## @@ -180,6 +180,25 @@ " Flink on YARN on an environment with a restrictive firewall, this option allows specifying a range of" + " allowed ports."); + /** + * A non-negative integer indicating the priority for submitting a Flink YARN application. It will only take effect + * if the Hadoop version >= 2.8.5 and YARN priority scheduling setting is enabled. Larger integer corresponds with + * higher priority. If priority is negative or set to '-1'(default), Flink will unset yarn priority setting and use + * cluster default priority. + * + * @see <a href="https://hadoop.apache.org/docs/r2.8.5/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html">YARN Capacity Scheduling Doc</a> + */ + public static final ConfigOption<Integer> APPLICATION_PRIORITY = + key("yarn.application.priority") + .defaultValue(-1) + .withDescription(Description.builder() + .text("A non-negative integer indicating the priority for submitting a Flink YARN application. It" + + " will only take effect if the Hadoop version >= 2.8.5 and YARN priority scheduling setting is enabled." + Review comment: Hi @walterddr it's tested in our yarn cluster which is based on the 2.8.x. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services