MapHost host = new MapHost("TestHost", "http://test/url"); ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray()); try {
context.getReduceShuffleBytes(), context.getFailedShuffleCounter()); MapHost host1 = new MapHost("host1", null); TaskAttemptID failedAttemptID = new TaskAttemptID( new org.apache.hadoop.mapred.TaskID(
context.getReduceShuffleBytes(), context.getFailedShuffleCounter()); MapHost host1 = new MapHost("host1", null); TaskAttemptID succeedAttempt1ID = new TaskAttemptID( new org.apache.hadoop.mapred.TaskID(
public synchronized void addKnownMapOutput(String hostName, String hostUrl, TaskAttemptID mapId) { MapHost host = mapLocations.get(hostName); if (host == null) { host = new MapHost(hostName, hostUrl); mapLocations.put(hostName, host); } host.addKnownMap(mapId); // Mark the host as pending if (host.getState() == State.PENDING) { pendingHosts.add(host); notifyAll(); } }
public synchronized void addKnownMapOutput(String hostName, String hostUrl, TaskAttemptID mapId) { MapHost host = mapLocations.get(hostName); if (host == null) { host = new MapHost(hostName, hostUrl); mapLocations.put(hostName, host); } host.addKnownMap(mapId); // Mark the host as pending if (host.getState() == State.PENDING) { pendingHosts.add(host); notifyAll(); } }
public synchronized void addKnownMapOutput(String hostName, String hostUrl, TaskAttemptID mapId) { MapHost host = mapLocations.get(hostName); if (host == null) { host = new MapHost(hostName, hostUrl); mapLocations.put(hostName, host); } host.addKnownMap(mapId); // Mark the host as pending if (host.getState() == State.PENDING) { pendingHosts.add(host); notifyAll(); } }
public synchronized void addKnownMapOutput(String hostName, String hostUrl, TaskAttemptID mapId) { MapHost host = mapLocations.get(hostName); if (host == null) { host = new MapHost(hostName, hostUrl); mapLocations.put(hostName, host); } host.addKnownMap(mapId); // Mark the host as pending if (host.getState() == State.PENDING) { pendingHosts.add(host); notifyAll(); } }
public synchronized void addKnownMapOutput(String hostName, String hostUrl, TaskAttemptID mapId) { MapHost host = mapLocations.get(hostName); if (host == null) { host = new MapHost(hostName, hostUrl); mapLocations.put(hostName, host); } host.addKnownMap(mapId); // Mark the host as pending if (host.getState() == State.PENDING) { pendingHosts.add(host); notifyAll(); } }
scheduler.copySucceeded(attemptID0, new MapHost(null, null), bytes, 60000, 100000, output); Assert.assertEquals(copyMessage(1, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID1, new MapHost(null, null), bytes, 0, 50000, output); Assert.assertEquals(copyMessage(2, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID2, new MapHost(null, null), bytes, 25000, 80000, output); Assert.assertEquals(copyMessage(3, 2, 2), progress.toString()); scheduler.copySucceeded(attemptID3, new MapHost(null, null), bytes, 100000, 300000, output); Assert.assertEquals(copyMessage(4, 0.5, 1), progress.toString()); scheduler.copySucceeded(attemptID4, new MapHost(null, null), bytes, 350000, 400000, output); Assert.assertEquals(copyMessage(5, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID5, new MapHost(null, null), bytes, 450000, 500000, output); Assert.assertEquals(copyMessage(6, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID6, new MapHost(null, null), bytes, 320000, 340000, output); Assert.assertEquals(copyMessage(7, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID7, new MapHost(null, null), bytes, 290000, 350000, output); Assert.assertEquals(copyMessage(8, 0.5, 1), progress.toString()); scheduler.copySucceeded(attemptID8, new MapHost(null, null), bytes, 400000, 450000, output); Assert.assertEquals(copyMessage(9, 1, 1), progress.toString()); scheduler.copySucceeded(attemptID9, new MapHost(null, null), bytes, 0, 500000, output); Assert.assertEquals(copyMessage(10, 1, 2), progress.toString());