Package org.apache.hadoop.metrics

Examples of org.apache.hadoop.metrics.MetricsContext.createRecord()


       
    JobHistory.JobInfo.logSubmitted(jobid, conf.getJobName(), conf.getUser(),
                                    System.currentTimeMillis(), jobFile);
       
    MetricsContext metricsContext = MetricsUtil.getContext("mapred");
    this.jobMetrics = metricsContext.createRecord("job");
    this.jobMetrics.setTag("user", conf.getUser());
    this.jobMetrics.setTag("jobName", conf.getJobName());
  }

  /**
 
View Full Code Here


       
        JobHistory.JobInfo.logSubmitted(jobid, conf.getJobName(), conf.getUser(),
            System.currentTimeMillis(), jobFile);
       
        MetricsContext metricsContext = MetricsUtil.getContext("mapred");
        this.jobMetrics = metricsContext.createRecord("job");
        this.jobMetrics.setTag("user", conf.getUser());
        this.jobMetrics.setTag("jobName", conf.getJobName());
    }

    /**
 
View Full Code Here

       
        JobHistory.JobInfo.logSubmitted(jobid, conf.getJobName(), conf.getUser(),
            System.currentTimeMillis(), jobFile);
       
        MetricsContext metricsContext = MetricsUtil.getContext("mapred");
        this.jobMetrics = metricsContext.createRecord("job");
        this.jobMetrics.setTag("user", conf.getUser());
        this.jobMetrics.setTag("jobName", conf.getJobName());
    }

    /**
 
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.