本文整理汇总了Java中org.apache.hadoop.mapreduce.Cluster.JobTrackerStatus.RUNNING属性的典型用法代码示例。如果您正苦于以下问题:Java JobTrackerStatus.RUNNING属性的具体用法?Java JobTrackerStatus.RUNNING怎么用?Java JobTrackerStatus.RUNNING使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.hadoop.mapreduce.Cluster.JobTrackerStatus
的用法示例。
在下文中一共展示了JobTrackerStatus.RUNNING属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: waitForJobTracker
/**
* Wait for the jobtracker to be RUNNING.
*/
static void waitForJobTracker(JobClient jobClient) {
while (true) {
try {
ClusterStatus status = jobClient.getClusterStatus();
while (status.getJobTrackerStatus() != JobTrackerStatus.RUNNING) {
waitFor(100);
status = jobClient.getClusterStatus();
}
break; // means that the jt is ready
} catch (IOException ioe) {}
}
}
示例2: waitActive
public void waitActive() throws IOException {
while (true) {
for (JobTrackerHADaemon jtHaDaemon : jtHaDaemonList) {
JobTracker jt = jtHaDaemon.getJobTracker();
if (jt != null) {
if (jt.getClusterStatus().getJobTrackerStatus() == JobTrackerStatus.RUNNING) {
return;
}
}
}
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {}
}
}
示例3: getClusterStatus
@Override
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, 0,
JobTracker.TASKTRACKER_EXPIRY_INTERVAL,
maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例4: getClusterStatus
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, 0,
JobTracker.TASKTRACKER_EXPIRY_INTERVAL,
maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例5: tearDown
@After
public void tearDown() {
ClusterStatus status = mr.getJobTrackerRunner().getJobTracker()
.getClusterStatus(false);
if (status.getJobTrackerStatus() == JobTrackerStatus.RUNNING) {
mr.shutdown();
}
if (dfs != null) {
dfs.shutdown();
}
}
示例6: getClusterStatus
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例7: getClusterStatus
@Override
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, 0,
10 * 60 * 1000,
maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例8: getClusterStatus
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, 0,
10 * 60 * 1000,
maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例9: getClusterStatus
@Override
public ClusterStatus getClusterStatus(boolean detailed) {
return new ClusterStatus(
taskTrackers().size() - getBlacklistedTrackerCount(),
getBlacklistedTrackerCount(), 0, 0, 0, totalSlots/2, totalSlots/2,
JobTrackerStatus.RUNNING, 0);
}
示例10: getClusterStatus
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(
numTrackers, 0,
ttExpiryInterval, maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例11: getClusterStatus
@Override
public ClusterStatus getClusterStatus() {
int numTrackers = trackers.size();
return new ClusterStatus(numTrackers, 0,
ttExpiryInterval, maps, reduces,
numTrackers * maxMapTasksPerTracker,
numTrackers * maxReduceTasksPerTracker,
JobTrackerStatus.RUNNING);
}
示例12: getJobTrackerStatus
@Override
public JobTrackerStatus getJobTrackerStatus() throws IOException, InterruptedException {
return JobTrackerStatus.RUNNING;
}
示例13: getJobTrackerStatus
@Override
public JobTrackerStatus getJobTrackerStatus() throws IOException,
InterruptedException {
return JobTrackerStatus.RUNNING;
}
示例14: getJobTrackerStatus
public JobTrackerStatus getJobTrackerStatus() {
return JobTrackerStatus.RUNNING;
}
示例15: getClusterStatus
public ClusterStatus getClusterStatus(boolean detailed) {
int numMapTasks = map_tasks.get();
return new ClusterStatus(1, 0, 0, numMapTasks, reduce_tasks, 1, 1,
JobTrackerStatus.RUNNING);
}