|
@@ -162,8 +162,10 @@ public class TaskTracker
|
|
private int numCompletedTasks = 0;
|
|
private int numCompletedTasks = 0;
|
|
|
|
|
|
TaskTrackerMetrics() {
|
|
TaskTrackerMetrics() {
|
|
|
|
+ JobConf conf = getJobConf();
|
|
MetricsContext context = MetricsUtil.getContext("mapred");
|
|
MetricsContext context = MetricsUtil.getContext("mapred");
|
|
metricsRecord = MetricsUtil.createRecord(context, "tasktracker");
|
|
metricsRecord = MetricsUtil.createRecord(context, "tasktracker");
|
|
|
|
+ metricsRecord.setTag("sessionId", conf.getSessionId());
|
|
context.registerUpdater(this);
|
|
context.registerUpdater(this);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -317,10 +319,10 @@ public class TaskTracker
|
|
int numCopiers = this.fConf.getInt("mapred.reduce.parallel.copies", 5);
|
|
int numCopiers = this.fConf.getInt("mapred.reduce.parallel.copies", 5);
|
|
//tweak the probe sample size (make it a function of numCopiers)
|
|
//tweak the probe sample size (make it a function of numCopiers)
|
|
probe_sample_size = Math.max(numCopiers*5, 50);
|
|
probe_sample_size = Math.max(numCopiers*5, 50);
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
this.myMetrics = new TaskTrackerMetrics();
|
|
this.myMetrics = new TaskTrackerMetrics();
|
|
-
|
|
|
|
|
|
+
|
|
// port numbers
|
|
// port numbers
|
|
this.taskReportPort = this.fConf.getInt("mapred.task.tracker.report.port", 50050);
|
|
this.taskReportPort = this.fConf.getInt("mapred.task.tracker.report.port", 50050);
|
|
// bind address
|
|
// bind address
|