This is an automated email from the ASF dual-hosted git repository. xtsong pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-agents.git
commit 67808c55edbc84edb04f789c26dc90cd72236d65 Author: WenjinXie <[email protected]> AuthorDate: Thu Jan 29 15:02:19 2026 +0800 [doc] Add hint for using aysnc execution in java. --- docs/content/docs/development/workflow_agent.md | 4 ++++ docs/content/docs/get-started/quickstart/react_agent.md | 4 ++++ docs/content/docs/get-started/quickstart/workflow_agent.md | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/development/workflow_agent.md b/docs/content/docs/development/workflow_agent.md index 8e9171a3..cbe071d3 100644 --- a/docs/content/docs/development/workflow_agent.md +++ b/docs/content/docs/development/workflow_agent.md @@ -402,6 +402,10 @@ public static void processInput(InputEvent event, RunnerContext ctx) throws Exce ctx.sendEvent(new OutputEvent(result)); } ``` + +{{< hint info >}} +To use async execution on JDK 21+, user should append jvm option `--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED` to [env.java.opts.all](https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/config/#env-java-opts-all) before start the flink cluster. +{{< /hint >}} {{< /tab >}} {{< /tabs >}} diff --git a/docs/content/docs/get-started/quickstart/react_agent.md b/docs/content/docs/get-started/quickstart/react_agent.md index 1002691f..39c9b731 100644 --- a/docs/content/docs/get-started/quickstart/react_agent.md +++ b/docs/content/docs/get-started/quickstart/react_agent.md @@ -243,6 +243,10 @@ $FLINK_HOME/bin/start-cluster.sh ```bash $FLINK_HOME/bin/start-cluster.sh ``` + +{{< hint info >}} +To run example on JDK 21+, append jvm option `--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED` to [env.java.opts.all](https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/config/#env-java-opts-all) in `$FLINK_HOME/conf/config.yaml` before start the flink cluster. +{{< /hint >}} {{< /tab >}} {{< /tabs >}} diff --git a/docs/content/docs/get-started/quickstart/workflow_agent.md b/docs/content/docs/get-started/quickstart/workflow_agent.md index 45e861d5..76b0d62e 100644 --- a/docs/content/docs/get-started/quickstart/workflow_agent.md +++ b/docs/content/docs/get-started/quickstart/workflow_agent.md @@ -373,12 +373,15 @@ $FLINK_HOME/bin/start-cluster.sh ```bash $FLINK_HOME/bin/start-cluster.sh ``` + +{{< hint info >}} +To run example on JDK 21+, append jvm option `--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED` to [env.java.opts.all](https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/config/#env-java-opts-all) in `$FLINK_HOME/conf/config.yaml` before start the flink cluster. +{{< /hint >}} {{< /tab >}} {{< /tabs >}} You can refer to the [local cluster](https://nightlies.apache.org/flink/flink-docs-release-1.20/docs/try-flink/local_installation/#starting-and-stopping-a-local-cluster) instructions for more detailed step. - {{< hint info >}} If you can't navigate to the web UI at [localhost:8081](localhost:8081), you can find the reason in `$FLINK_HOME/log`. If the reason is port conflict, you can change the port in `$FLINK_HOME/conf/config.yaml`. {{< /hint >}}
