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

This commit is contained in:
Yhr-N 2023-09-19 13:23:27 +08:00 committed by GitHub
parent 298b8ccf5a
commit 9083f9d0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,10 @@ public class SeatunnelSparkTask extends SeatunnelTask {
: 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;