示例#1
0
        protected internal override Task CreateRemoteTask()
        {
            //job file name is set in TaskAttempt, setting it null here
            MapTask mapTask = new MapTask(string.Empty, TypeConverter.FromYarn(GetID()), partition
                                          , splitInfo.GetSplitIndex(), 1);

            // YARN doesn't have the concept of slots per task, set it as 1.
            mapTask.SetUser(conf.Get(MRJobConfig.UserName));
            mapTask.SetConf(conf);
            return(mapTask);
        }