Package org.apache.oozie.command.coord

Examples of org.apache.oozie.command.coord.CoordSubmitCommand


        writeToFile(appXml, appPath);
        conf.set(OozieClient.COORDINATOR_APP_PATH, appPath);
        // conf.set(OozieClient.USER_NAME, getTestUser());
        conf.set(OozieClient.GROUP_NAME, "other");
        injectKerberosInfo(conf);
        CoordSubmitCommand sc = new CoordSubmitCommand(conf, "UNIT_TESTING");
        String jobId = null;
        try {
            sc.call();
            fail("Exception expected if user.name is not set!");
        }
        catch (CommandException e) {
            // should come here
        }
View Full Code Here


        writeToFile(appXml, appPath);
        conf.set(OozieClient.COORDINATOR_APP_PATH, appPath);
        conf.set(OozieClient.USER_NAME, getTestUser());
        conf.set(OozieClient.GROUP_NAME, "other");
        injectKerberosInfo(conf);
        CoordSubmitCommand sc = new CoordSubmitCommand(conf, "UNIT_TESTING");
        String jobId = sc.call();

        assertEquals(jobId.substring(jobId.length() - 2), "-C");
        checkCoordJobs(jobId);

    }
View Full Code Here

        conf.set(OozieClient.COORDINATOR_APP_PATH, appPath);
        conf.set(OozieClient.USER_NAME, getTestUser());
        conf.set(OozieClient.GROUP_NAME, "other");
        conf.set("MY_DONE_FLAG", "complete");
        injectKerberosInfo(conf);
        CoordSubmitCommand sc = new CoordSubmitCommand(conf, "UNIT_TESTING");
        String jobId = sc.call();

        assertEquals(jobId.substring(jobId.length() - 2), "-C");
        checkCoordJobs(jobId);
    }
View Full Code Here

        conf.set(OozieClient.COORDINATOR_APP_PATH, appPath);
        conf.set(OozieClient.USER_NAME, getTestUser());
        conf.set(OozieClient.GROUP_NAME, "other");
        conf.set("MINUTES", "1");
        injectKerberosInfo(conf);
        CoordSubmitCommand sc = new CoordSubmitCommand(conf, "UNIT_TESTING");

        try {
            sc.call();
            fail("Coord job submission should fail with reserved variable definitions.");
        }
        catch (CommandException ce) {

        }
View Full Code Here

            if (useXCommand) {
                CoordSubmitXCommand submit = new CoordSubmitXCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            else {
                CoordSubmitCommand submit = new CoordSubmitCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            return jobId;
        }
        catch (CommandException ex) {
            throw new CoordinatorEngineException(ex);
View Full Code Here

            if (useXCommand) {
                CoordSubmitXCommand submit = new CoordSubmitXCommand(true, conf, getAuthToken());
                jobId = submit.call();
            }
            else {
                CoordSubmitCommand submit = new CoordSubmitCommand(true, conf, getAuthToken());
                jobId = submit.call();
            }
            return jobId;
        }
        catch (CommandException ex) {
            throw new CoordinatorEngineException(ex);
View Full Code Here

TOP

Related Classes of org.apache.oozie.command.coord.CoordSubmitCommand

Copyright © 2018 www.massapicom. 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.