feature flinksql support standalone deploy mode (#13495)

This commit is contained in:
shenyun 2023-02-05 20:37:56 +08:00 committed by GitHub
parent 0ee82c5492
commit 8fa90c2d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View File

@ -129,6 +129,8 @@ public class FlinkArgsUtils {
if (FlinkDeployMode.LOCAL == deployMode) {
// execution.target
initOptions.add(String.format(FlinkConstants.FLINK_FORMAT_EXECUTION_TARGET, FlinkConstants.FLINK_LOCAL));
} else if (FlinkDeployMode.STANDALONE == deployMode) {
// standalone exec
} else {
// execution.target
initOptions.add(
@ -209,6 +211,9 @@ public class FlinkArgsUtils {
case LOCAL:
args.add(FlinkConstants.FLINK_RUN); // run
break;
case STANDALONE:
args.add(FlinkConstants.FLINK_RUN); // run
break;
}
String others = flinkParameters.getOthers();
@ -259,6 +264,8 @@ public class FlinkArgsUtils {
break;
case LOCAL:
break;
case STANDALONE:
break;
}
int parallelism = flinkParameters.getParallelism();

View File

@ -28,5 +28,7 @@ public enum FlinkDeployMode {
@JsonProperty("cluster")
CLUSTER,
@JsonProperty("application")
APPLICATION
APPLICATION,
@JsonProperty("standalone")
STANDALONE
}

View File

@ -53,6 +53,10 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
{
label: 'local',
value: 'local'
},
{
label: 'standalone',
value: 'standalone'
}
]
}