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