Example #1
0
        /// <exception cref="System.IO.IOException"/>
        public virtual KillTaskAttemptResponse KillTaskAttempt(KillTaskAttemptRequest request
                                                               )
        {
            KillTaskAttemptResponse resp = recordFactory.NewRecordInstance <KillTaskAttemptResponse
                                                                            >();

            return(resp);
        }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual MRServiceProtos.KillTaskAttemptResponseProto KillTaskAttempt(RpcController
                                                                                    controller, MRServiceProtos.KillTaskAttemptRequestProto proto)
        {
            KillTaskAttemptRequest request = new KillTaskAttemptRequestPBImpl(proto);

            try
            {
                KillTaskAttemptResponse response = real.KillTaskAttempt(request);
                return(((KillTaskAttemptResponsePBImpl)response).GetProto());
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Example #3
0
            /// <exception cref="System.IO.IOException"/>
            public virtual KillTaskAttemptResponse KillTaskAttempt(KillTaskAttemptRequest request
                                                                   )
            {
                TaskAttemptId        taskAttemptId = request.GetTaskAttemptId();
                UserGroupInformation callerUGI     = UserGroupInformation.GetCurrentUser();
                string message = "Kill task attempt " + taskAttemptId + " received from " + callerUGI
                                 + " at " + Server.GetRemoteAddress();

                MRClientService.Log.Info(message);
                this.VerifyAndGetAttempt(taskAttemptId, JobACL.ModifyJob);
                this._enclosing.appContext.GetEventHandler().Handle(new TaskAttemptDiagnosticsUpdateEvent
                                                                        (taskAttemptId, message));
                this._enclosing.appContext.GetEventHandler().Handle(new TaskAttemptEvent(taskAttemptId
                                                                                         , TaskAttemptEventType.TaKill));
                KillTaskAttemptResponse response = this.recordFactory.NewRecordInstance <KillTaskAttemptResponse
                                                                                         >();

                return(response);
            }