Package org.apache.oozie.util

Examples of org.apache.oozie.util.XLog.info()


                    if (Services.get().get(JobsConcurrencyService.class).isJobIdForThisServer(caction.getId())) {
                        Services.get().get(InstrumentationService.class).get()
                                .incr(INSTRUMENTATION_GROUP, INSTR_RECOVERED_COORD_ACTIONS_COUNTER, 1);
                        if (caction.getStatus() == CoordinatorActionBean.Status.WAITING) {
                            queueCallable(new CoordActionInputCheckXCommand(caction.getId(), caction.getJobId()));
                            log.info("Recover a WAITING coord action and resubmit CoordActionInputCheckXCommand :"
                                    + caction.getId());
                            if (caction.getPushMissingDependencies() != null
                                    && caction.getPushMissingDependencies().length() != 0) {
                                queueCallable(new CoordPushDependencyCheckXCommand(caction.getId(), true, true),
                                        pushMissingDepDelay);
View Full Code Here


                            if (caction.getPushMissingDependencies() != null
                                    && caction.getPushMissingDependencies().length() != 0) {
                                queueCallable(new CoordPushDependencyCheckXCommand(caction.getId(), true, true),
                                        pushMissingDepDelay);
                                pushMissingDepDelay = pushMissingDepDelay + pushMissingDepInterval;
                                log.info("Recover a WAITING coord action and resubmit CoordPushDependencyCheckX :"
                                        + caction.getId());
                            }
                        }
                        else if (caction.getStatus() == CoordinatorActionBean.Status.SUBMITTED) {
                            CoordinatorJobBean coordJob = CoordJobQueryExecutor.getInstance().get(
View Full Code Here

                            CoordinatorJobBean coordJob = CoordJobQueryExecutor.getInstance().get(
                                    CoordJobQuery.GET_COORD_JOB_USER_APPNAME, caction.getJobId());
                            queueCallable(new CoordActionStartXCommand(caction.getId(), coordJob.getUser(),
                                    coordJob.getAppName(), caction.getJobId()));

                            log.info("Recover a SUBMITTED coord action and resubmit CoordActionStartCommand :"
                                    + caction.getId());
                        }
                        else if (caction.getStatus() == CoordinatorActionBean.Status.SUSPENDED) {
                            if (caction.getExternalId() != null && caction.getPending() > 1) {
                                queueCallable(new SuspendXCommand(caction.getExternalId()));
View Full Code Here

                jobids = Services.get().get(JobsConcurrencyService.class).getJobIdsForThisServer(jobids);
                msg.append(", COORD_READY_JOBS : " + jobids.size());
                for (String jobid : jobids) {
                        queueCallable(new CoordActionReadyXCommand(jobid));

                    log.info("Recover READY coord actions for jobid :" + jobid);
                }
            }
            catch (Exception ex) {
                log.error("Exception, {0}", ex.getMessage(), ex);
            }
View Full Code Here

     */
    @SuppressWarnings("unchecked")
    @Override
    public void start(final Context context, final WorkflowAction action) throws ActionExecutorException {
        XLog log = XLog.getLog(getClass());
        log.info("start() begins");
        String confStr = action.getConf();
        Element conf;
        try {
            conf = XmlUtils.parseXml(confStr);
        }
View Full Code Here

        else {
            pid = runningPid;
            context.setStartData(pid, host, host);
            check(context, action);
        }
        log.info("start() ends");
    }

    private String checkIfRunning(String host, final Context context, final WorkflowAction action) {
        String pid = null;
        String outFile = getRemoteFileName(context, action, "pid", false, false);
View Full Code Here

     * @throws IOException thrown if failed to setup.
     * @throws InterruptedException thrown if any interruption happens.
     */
    protected String setupRemote(String host, Context context, WorkflowAction action) throws IOException, InterruptedException {
        XLog log = XLog.getLog(getClass());
        log.info("Attempting to copy ssh base scripts to remote host [{0}]", host);
        String localDirLocation = Services.get().getRuntimeDir() + "/ssh";
        if (localDirLocation.endsWith("/")) {
            localDirLocation = localDirLocation.substring(0, localDirLocation.length() - 1);
        }
        File file = new File(localDirLocation + "/ssh-base.sh");
View Full Code Here

            return result;
        }
        catch (XException ex) {
            log.error(logMask | XLog.OPS, "XException, {0}", ex);
            if (store != null) {
                log.info(XLog.STD, "XException - connection logs from store {0}, {1}", store.getConnection(), store
                        .isClosed());
            }
            exception = true;
            if (store != null && store.isActive()) {
                try {
View Full Code Here

        long started = System.currentTimeMillis();
        long mustEnd = System.currentTimeMillis() + (long)(WAITFOR_RATIO * timeout);
        long lastEcho = 0;
        try {
            long waiting = mustEnd - System.currentTimeMillis();
            log.info("Waiting up to [{0}] msec", waiting);
            boolean eval;
            while (!(eval = predicate.evaluate()) && System.currentTimeMillis() < mustEnd) {
                if ((System.currentTimeMillis() - lastEcho) > 1000) {
                    waiting = mustEnd - System.currentTimeMillis();
                    log.info("Waiting up to [{0}] msec", waiting);
View Full Code Here

            log.info("Waiting up to [{0}] msec", waiting);
            boolean eval;
            while (!(eval = predicate.evaluate()) && System.currentTimeMillis() < mustEnd) {
                if ((System.currentTimeMillis() - lastEcho) > 1000) {
                    waiting = mustEnd - System.currentTimeMillis();
                    log.info("Waiting up to [{0}] msec", waiting);
                    lastEcho = System.currentTimeMillis();
                }
                Thread.sleep(1000);
            }
            if (!eval) {
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.