Browse Source

Fix wrong judgment condition when building parameters of seatunnel task node. (#14594)

3.2.1-prepare
Kerwin 1 year ago committed by GitHub
parent
commit
9664bef933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/flink/SeatunnelFlinkTask.java

11
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/flink/SeatunnelFlinkTask.java

@ -44,13 +44,12 @@ public class SeatunnelFlinkTask extends SeatunnelTask {
@Override
public List<String> buildOptions() throws Exception {
List<String> args = super.buildOptions();
if (!(Objects.isNull(seatunnelParameters.getRunMode())
&& SeatunnelFlinkParameters.RunModeEnum.NONE.equals(seatunnelParameters.getRunMode()))) {
args.add(
Objects.isNull(seatunnelParameters.getRunMode())
? SeatunnelFlinkParameters.RunModeEnum.RUN.getCommand()
: seatunnelParameters.getRunMode().getCommand());
if (Objects.nonNull(seatunnelParameters.getRunMode())
&& !SeatunnelFlinkParameters.RunModeEnum.NONE.equals(seatunnelParameters.getRunMode())) {
args.add(seatunnelParameters.getRunMode().getCommand());
}
if (StringUtils.isNotBlank(seatunnelParameters.getOthers())) {
args.add(seatunnelParameters.getOthers());
}

Loading…
Cancel
Save