fsk119 commented on code in PR #25784: URL: https://github.com/apache/flink/pull/25784#discussion_r1912619161
########## docs/content/docs/dev/table/sqlClient.md: ########## @@ -601,6 +601,24 @@ This configuration: <span class="label label-danger">Attention</span> Compared to the interactive mode, SQL Client will stop execution and exits when there are errors. +### Deploy SQL Files in an Application Cluster + +SQL Client also supports deploying a SQL script file to an Application Cluster with the `-f` option, if you specify the deployment target in the config.yaml or startup options. +Here is an example to deploy script file in an Application Cluster. + +```bash +./bin/sql-client.sh -f oss://path/to/script.sql \ + -Dexecution.target=kubernetes-application \ + -Dkubernetes.cluster-id=${CLUSTER_ID} \ + -Dkubernetes.container.image.ref=${FLINK_IMAGE_NAME}' +``` + +After execution, SQL Client print the cluster id on the terminal. The script can contain any statement that is supported by Flink. But Application cluster only supports one job, please refer to the Review Comment: I just mean the new feature supports to run any kinds of statement, but it doesn't mean the combination of the sql statements. If the cluster doesn't enable ha mode, the cluster is able to run multiple jobs. -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org