org.apache.hadoop.vaidya.postexdiagnosis
Class PostExPerformanceDiagnoser

java.lang.Object
  extended by org.apache.hadoop.vaidya.JobDiagnoser
      extended by org.apache.hadoop.vaidya.postexdiagnosis.PostExPerformanceDiagnoser

public class PostExPerformanceDiagnoser
extends JobDiagnoser

This class acts as a driver or rule engine for executing the post execution performance diagnostics tests of a map/reduce job. It prints or saves the diagnostic report as a xml document.


Constructor Summary
PostExPerformanceDiagnoser(String jobConfFile, String jobHistoryFile, InputStream testsConfFileIs, String reportFile)
           
 
Method Summary
 JobStatistics getJobExecutionStatistics()
           
 String getJobHistoryFile()
           
 String getReportFile()
           
 InputStream getTestsConfFileIs()
           
static void main(String[] args)
           
 void setTestsConfFileIs(InputStream testsConfFileIs)
           
 
Methods inherited from class org.apache.hadoop.vaidya.JobDiagnoser
getReport, printReport, saveReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostExPerformanceDiagnoser

public PostExPerformanceDiagnoser(String jobConfFile,
                                  String jobHistoryFile,
                                  InputStream testsConfFileIs,
                                  String reportFile)
                           throws Exception
Parameters:
jobConfFile - - URL pointing to job configuration (job_conf.xml) file
jobHistoryFile - - URL pointing to job history log file
testsConfFileIs - - file path for test configuration file (optional). If not specified default path is:$HADOOP_HOME/contrib/vaidya/pxpd_tests_config.xml
reportFile - - file path for storing report (optional)
Throws:
Exception
Method Detail

getReportFile

public String getReportFile()

getJobHistoryFile

public String getJobHistoryFile()

getTestsConfFileIs

public InputStream getTestsConfFileIs()

setTestsConfFileIs

public void setTestsConfFileIs(InputStream testsConfFileIs)

getJobExecutionStatistics

public JobStatistics getJobExecutionStatistics()
Returns:
JobStatistics - Object storing the job configuration and execution counters and statistics information

main

public static void main(String[] args)
Parameters:
args -


Copyright © 2009 The Apache Software Foundation