Browse Source

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

3.1.9-release
Yhr-N 1 year ago committed by zhuangchong
parent
commit
df9aa418b8
  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

@ -56,9 +56,10 @@ public class SeatunnelSparkTask extends SeatunnelTask {
MasterTypeEnum master = DeployModeEnum.local == seatunnelParameters.getDeployMode() ? MasterTypeEnum.LOCAL : seatunnelParameters.getMaster();
args.add(MASTER_OPTIONS);
args.add(master.getCommand());
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;

Loading…
Cancel
Save