Package org.apache.hadoop.chukwa.conf

Examples of org.apache.hadoop.chukwa.conf.ChukwaConfiguration.addResource()


                        Path jobconf = new Path("/.JOBS/" + jobid + ".xml");
                        FileSystem fs = jobconf.getFileSystem(chukwaconf);
                       
                        if(fs.exists(jobconf)){
                            ChukwaConfiguration tempconf = new ChukwaConfiguration(false);
                            tempconf.addResource(fs.open(jobconf));
                            if(testname==null || testname.equals("")) testname = tempconf.get(AnalysisProcessorConfiguration.reportfile);
                            if(starttime==null || starttime.equals(""))starttime = tempconf.get(AnalysisProcessorConfiguration.basestart);
                            if(endtime==null || endtime.equals(""))endtime = tempconf.get(AnalysisProcessorConfiguration.baseend);
                        }else {
                            log.warn("The analysis conf file for " + jobid + " (" + jobconf.toString() + ") doesn't exist." );
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.