Browse Source

[Fix-14546] seatunnel unable submit spark job to spark (#14617)

3.2.1-prepare
Yhr-N 1 year ago committed by GitHub
parent
commit
9083f9d0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkTask.java

5
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/spark/SeatunnelSparkTask.java

@ -58,9 +58,10 @@ public class SeatunnelSparkTask extends SeatunnelTask {
: seatunnelParameters.getMaster(); : seatunnelParameters.getMaster();
args.add(MASTER_OPTIONS); args.add(MASTER_OPTIONS);
args.add(master.getCommand());
if (MasterTypeEnum.SPARK.equals(master) || MasterTypeEnum.MESOS.equals(master)) { if (MasterTypeEnum.SPARK.equals(master) || MasterTypeEnum.MESOS.equals(master)) {
args.add(seatunnelParameters.getMasterUrl()); args.add(master.getCommand() + seatunnelParameters.getMasterUrl());
} else {
args.add(master.getCommand());
} }
return args; return args;

Loading…
Cancel
Save