Skip to content

Commit

Permalink
[FLINK-22476][docs] Extend the description of the config option `exec…
Browse files Browse the repository at this point in the history
…ution.target`

This closes #15777.
  • Loading branch information
tony810430 authored and tillrohrmann committed Apr 27, 2021
1 parent 32667d6 commit 055f231
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<td><h5>execution.target</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>The deployment target for the execution. This can take one of the following values:<ul><li>remote</li><li>local</li><li>yarn-per-job</li><li>yarn-session</li><li>kubernetes-session</li></ul>.</td>
<td>The deployment target for the execution. This can take one of the following values when calling <code class="highlighter-rouge">bin/flink run</code>:<ul><li>remote</li><li>local</li><li>yarn-per-job</li><li>yarn-session</li><li>kubernetes-session</li></ul>And one of the following values when calling <code class="highlighter-rouge">bin/flink run-application</code>:<ul><li>yarn-application</li><li>kubernetes-application</li></ul></td>
</tr>
</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.configuration.description.Description;
import org.apache.flink.configuration.description.TextElement;

import java.util.List;

Expand All @@ -37,14 +38,19 @@ public class DeploymentOptions {
.withDescription(
Description.builder()
.text(
"The deployment target for the execution. This can take one of the following values:")
"The deployment target for the execution. This can take one of the following values "
+ "when calling %s:",
TextElement.code("bin/flink run"))
.list(
text("remote"),
text("local"),
text("yarn-per-job"),
text("yarn-session"),
text("kubernetes-session"))
.text(".")
.text(
"And one of the following values when calling %s:",
TextElement.code("bin/flink run-application"))
.list(text("yarn-application"), text("kubernetes-application"))
.build());

public static final ConfigOption<Boolean> ATTACHED =
Expand Down

0 comments on commit 055f231

Please sign in to comment.