Package org.apache.oozie.command.wf

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


    public String submitHttpJob(Configuration conf, String jobType) throws DagEngineException {
        validateSubmitConfiguration(conf);

        try {
            String jobId;
            SubmitHttpXCommand submit = null;
            if (jobType.equals("pig")) {
                submit = new SubmitPigXCommand(conf, getAuthToken());
            }
            else if (jobType.equals("mapreduce")) {
                submit = new SubmitMRXCommand(conf, getAuthToken());
            }

            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here


        validateSubmitConfiguration(conf);

        try {
            String jobId;
            if (useXCommand) {
                SubmitHttpXCommand submit = null;
                if (jobType.equals("pig")) {
                    submit = new SubmitPigXCommand(conf, getAuthToken());
                }
                else if (jobType.equals("mapreduce")) {
                    submit = new SubmitMRXCommand(conf, getAuthToken());
                }

                jobId = submit.call();
            }
            else {
                SubmitHttpCommand submit = null;
                if (jobType.equals("pig")) {
                    submit = new SubmitPigCommand(conf, getAuthToken());
                }
                else if (jobType.equals("mapreduce")) {
                    submit = new SubmitMRCommand(conf, getAuthToken());
                }

                jobId = submit.call();
            }
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
View Full Code Here

    public String submitHttpJob(Configuration conf, String jobType) throws DagEngineException {
        validateSubmitConfiguration(conf);

        try {
            String jobId;
            SubmitHttpXCommand submit = null;
            if (jobType.equals("pig")) {
                submit = new SubmitPigXCommand(conf, getAuthToken());
            }
            else if (jobType.equals("mapreduce")) {
                submit = new SubmitMRXCommand(conf, getAuthToken());
            }

            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here

    public String submitHttpJob(Configuration conf, String jobType) throws DagEngineException {
        validateSubmitConfiguration(conf);

        try {
            String jobId;
            SubmitHttpXCommand submit = null;
            if (jobType.equals("pig")) {
                submit = new SubmitPigXCommand(conf);
            }
            else if (jobType.equals("mapreduce")) {
                submit = new SubmitMRXCommand(conf);
            }
            else if (jobType.equals("hive")) {
                submit = new SubmitHiveXCommand(conf);
            }
            else if (jobType.equals("sqoop")) {
                submit = new SubmitSqoopXCommand(conf);
            }

            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here

    public String submitHttpJob(Configuration conf, String jobType) throws DagEngineException {
        validateSubmitConfiguration(conf);

        try {
            String jobId;
            SubmitHttpXCommand submit = null;
            if (jobType.equals("pig")) {
                submit = new SubmitPigXCommand(conf);
            }
            else if (jobType.equals("mapreduce")) {
                submit = new SubmitMRXCommand(conf);
            }
            else if (jobType.equals("hive")) {
                submit = new SubmitHiveXCommand(conf);
            }

            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here

        validateSubmitConfiguration(conf);

        try {
            String jobId;
            if (useXCommand) {
                SubmitHttpXCommand submit = null;
                if (jobType.equals("pig")) {
                    submit = new SubmitPigXCommand(conf, getAuthToken());
                }
                else if (jobType.equals("mapreduce")) {
                    submit = new SubmitMRXCommand(conf, getAuthToken());
                }

                jobId = submit.call();
            }
            else {
                SubmitHttpCommand submit = null;
                if (jobType.equals("pig")) {
                    submit = new SubmitPigCommand(conf, getAuthToken());
                }
                else if (jobType.equals("mapreduce")) {
                    submit = new SubmitMRCommand(conf, getAuthToken());
                }

                jobId = submit.call();
            }
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
View Full Code Here

TOP

Related Classes of org.apache.oozie.command.wf.SubmitHttpXCommand

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.