Package org.apache.falcon

Examples of org.apache.falcon.JobTrackerService


    @SuppressWarnings("unchecked")
    private void startLocalJobRunner() throws Exception {
        String className = "org.apache.hadoop.mapred.LocalRunnerV1";
        try {
            Class<? extends JobTrackerService>  runner = (Class<? extends JobTrackerService>) Class.forName(className);
            JobTrackerService service = runner.newInstance();
            service.start();
        } catch (ClassNotFoundException e) {
            LOG.warn("v1 Hadoop components not found. Assuming v2", e);
        }
    }
View Full Code Here


        String hadoopProfle = System.getProperty("hadoop.profile", "1");
        if (hadoopProfle.equals("1")) {
            String className = "org.apache.hadoop.mapred.LocalRunnerV1";
            Class<? extends JobTrackerService> runner =
                    (Class<? extends JobTrackerService>) Class.forName(className);
            JobTrackerService service = runner.newInstance();
            service.start();
        }
        JobClient client = new JobClient(new JobConf(conf));
        System.out.println(client.getSystemDir());
    }
View Full Code Here

TOP

Related Classes of org.apache.falcon.JobTrackerService

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.