tillrohrmann 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_r318091440
##########
File path:
flink-yarn/src/main/java/org/apache/flink/yarn/configuration/YarnConfigOptions.java
##########
@@ -180,6 +180,22 @@
" 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 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("A non-negative integer indicating the
priority for submitting a Flink YARN application. It" +
+ " will only take effect if 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.
Please refer to YARN official documentation for specific" +
+ " settings required to enable priority schedule
for the targeted YARN version.");
Review comment:
```suggestion
" settings required to enable priority
scheduling for the targeted YARN version.");
```
----------------------------------------------------------------
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