100101102103104105106107108109110
// stop all mapWorker_1.stop(); mapWorker_2.stop(); mapWorker_3.stop(); mapWorker_4.stop(); reduceWorker_1.stop(); synchronized (foundURLs) { for (String string : foundURLs) { System.out.println(string); }
// stop all mapWorker_1.stop(); mapWorker_2.stop(); mapWorker_3.stop(); mapWorker_4.stop(); reduceWorker_1.stop(); for (String string : foundURLs) { System.out.println(string); }
5960616263646566676869
taskID2TaskMap.putIfAbsent(worker.addTask(task), task); TimeUnit.MILLISECONDS.sleep(100); } worker.stop(); for (String string : foundURLs) { System.out.println(string); }