|
@@ -36,6 +36,7 @@ import org.apache.dolphinscheduler.server.master.runner.EventExecuteService;
|
|
|
import org.apache.dolphinscheduler.server.master.runner.FailoverExecuteThread;
|
|
|
import org.apache.dolphinscheduler.server.master.runner.MasterSchedulerService;
|
|
|
import org.apache.dolphinscheduler.service.bean.SpringApplicationContext;
|
|
|
+import org.apache.dolphinscheduler.service.task.TaskPluginManager;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
@@ -68,6 +69,9 @@ public class MasterServer implements IStoppable {
|
|
|
@Autowired
|
|
|
private MasterRegistryClient masterRegistryClient;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TaskPluginManager taskPluginManager;
|
|
|
+
|
|
|
@Autowired
|
|
|
private MasterSchedulerService masterSchedulerService;
|
|
|
|
|
@@ -131,6 +135,9 @@ public class MasterServer implements IStoppable {
|
|
|
|
|
|
this.nettyRemotingServer.start();
|
|
|
|
|
|
+ // install task plugin
|
|
|
+ this.taskPluginManager.installPlugin();
|
|
|
+
|
|
|
// self tolerant
|
|
|
this.masterRegistryClient.init();
|
|
|
this.masterRegistryClient.start();
|