Examples of KillXCommand


Examples of org.apache.oozie.command.wf.KillXCommand

                            log.debug("Recover a SUSPENDED coord action and resubmit SuspendXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new KillXCommand(caction.getExternalId()));
                            log.debug("Recover a KILLED coord action and resubmit KillXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                        if (caction.getExternalId() != null) {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

        try {
            if (actionList != null) {
                for (CoordinatorActionBean action : actionList) {
                    // queue a WorkflowKillXCommand to delete the workflow job and actions
                    if (action.getExternalId() != null) {
                        queue(new KillXCommand(action.getExternalId()));
                        // As the kill command for children is queued, set pending flag for coord action to be true
                        updateCoordAction(action, true);
                        LOG.debug(
                                "Killed coord action = [{0}], new status = [{1}], pending = [{2}] and queue KillXCommand for [{3}]",
                                action.getId(), action.getStatus(), action.getPending(), action.getExternalId());
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

    public void kill(String jobId) throws DagEngineException {
        // Changing to synchronous call from asynchronous queuing to prevent the
        // loss of command if the queue is full or the queue is lost in case of
        // failure.
        try {
      new KillXCommand(jobId).call();
      LOG.info("User " + user + " killed the WF job " + jobId);
        }
        catch (CommandException e) {
            throw new DagEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

                            && action.getStatus() != CoordinatorActionBean.Status.TIMEDOUT
                            && action.getStatus() != CoordinatorActionBean.Status.SUCCEEDED
                            && action.getStatus() != CoordinatorActionBean.Status.KILLED) {
                        // queue a WorkflowKillXCommand to delete the workflow job and actions
                        if (action.getExternalId() != null) {
                            queue(new KillXCommand(action.getExternalId()));
                            updateCoordAction(action);
                            LOG.debug("Killed coord action = [{0}], new status = [{1}], pending = [{2}] and queue KillXCommand for [{3}]",
                                            action.getId(), action.getStatus(), action.getPending(), action.getExternalId());
                        }
                        else {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

                            log.debug("Recover a SUSPENDED coord action and resubmit SuspendXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new KillXCommand(caction.getExternalId()));
                            log.debug("Recover a KILLED coord action and resubmit KillXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                        if (caction.getExternalId() != null) {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

        // Changing to synchronous call from asynchronous queuing to prevent the
        // loss of command if the queue is full or the queue is lost in case of
        // failure.
        try {
            if (useXCommand) {
                new KillXCommand(jobId).call();
            }
            else {
                new KillCommand(jobId).call();
            }
            LOG.info("User " + user + " killed the WF job " + jobId);
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

    public void killChildren() throws CommandException {
        if (actionList != null) {
            for (CoordinatorActionBean action : actionList) {
                // queue a WorkflowKillXCommand to delete the workflow job and actions
                if (action.getExternalId() != null) {
                    queue(new KillXCommand(action.getExternalId()));
                    // As the kill command for children is queued, set pending flag for coord action to be true
                    updateCoordAction(action, true);
                    LOG.debug(
                            "Killed coord action = [{0}], new status = [{1}], pending = [{2}] and queue KillXCommand for [{3}]",
                            action.getId(), action.getStatus(), action.getPending(), action.getExternalId());
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

                                    + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new KillXCommand(caction.getExternalId()));
                            log.debug("Recover a KILLED coord action and resubmit KillXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                        if (caction.getExternalId() != null) {
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

    public void kill(String jobId) throws DagEngineException {
        // Changing to synchronous call from asynchronous queuing to prevent the
        // loss of command if the queue is full or the queue is lost in case of
        // failure.
        try {
      new KillXCommand(jobId).call();
      LOG.info("User " + user + " killed the WF job " + jobId);
        }
        catch (CommandException e) {
            throw new DagEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.wf.KillXCommand

        for (CoordinatorActionBean coordAction : coordActions) {
            coordAction.setStatus(CoordinatorAction.Status.KILLED);
            coordAction.setLastModifiedTime(new Date());
            // kill Workflow job associated with this Coord action
            if (coordAction.getExternalId() != null) {
                queue(new KillXCommand(coordAction.getExternalId()));
                coordAction.incrementAndGetPending();
            }
            else {
                coordAction.setPending(0);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.