Skip to content

Commit

Permalink
feature flinksql support standalone deploy mode (#13495)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyun authored Feb 5, 2023
1 parent 0ee82c5 commit 8fa90c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public static List<String> buildInitOptionsForSql(FlinkParameters flinkParameter
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(
Expand Down Expand Up @@ -209,6 +211,9 @@ private static List<String> buildRunCommandLineForOthers(TaskExecutionContext ta
case LOCAL:
args.add(FlinkConstants.FLINK_RUN); // run
break;
case STANDALONE:
args.add(FlinkConstants.FLINK_RUN); // run
break;
}

String others = flinkParameters.getOthers();
Expand Down Expand Up @@ -259,6 +264,8 @@ private static List<String> buildRunCommandLineForOthers(TaskExecutionContext ta
break;
case LOCAL:
break;
case STANDALONE:
break;
}

int parallelism = flinkParameters.getParallelism();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ public enum FlinkDeployMode {
@JsonProperty("cluster")
CLUSTER,
@JsonProperty("application")
APPLICATION
APPLICATION,
@JsonProperty("standalone")
STANDALONE
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
{
label: 'local',
value: 'local'
},
{
label: 'standalone',
value: 'standalone'
}
]
}
Expand Down

0 comments on commit 8fa90c2

Please sign in to comment.