作业启动注释添加
This commit is contained in:
parent
a79791fb92
commit
b58553bb1e
@ -1676,6 +1676,7 @@ public static void main(String[] args) {
|
||||
ShutdownHookManager.get().addShutdownHook(
|
||||
new MRAppMasterShutdownHook(appMaster), SHUTDOWN_HOOK_PRIORITY);
|
||||
JobConf conf = new JobConf(new YarnConfiguration());
|
||||
// 加载job.xml信息
|
||||
conf.addResource(new Path(MRJobConfig.JOB_CONF_FILE));
|
||||
|
||||
MRWebAppUtil.initialize(conf);
|
||||
|
@ -252,6 +252,7 @@ public void run() {
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void handleJobSetup(CommitterJobSetupEvent event) {
|
||||
try {
|
||||
// 主要是创建attempt路径
|
||||
committer.setupJob(event.getJobContext());
|
||||
context.getEventHandler().handle(
|
||||
new JobSetupCompletedEvent(event.getJobID()));
|
||||
|
@ -1455,6 +1455,7 @@ public JobStateInternal transition(JobImpl job, JobEvent event) {
|
||||
}
|
||||
|
||||
try {
|
||||
// 初始化token等信息。
|
||||
setup(job);
|
||||
job.fs = job.getFileSystem(job.conf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user