/** * notifyMasterOfMapTaskFailure: Get master's communicator and call mapTaskFailed on it with the * failed maptask and the exception * * @param task * @param e */ public void notifyMasterOfMapTaskFailure(MapTask task, Exception e) { Registry registry; String masterNode = communicator.getMasterHostName(); try { registry = LocateRegistry.getRegistry(masterNode, communicator.getREGISTRY_PORT()); CommunicatorInterface communicator = (CommunicatorInterface) registry.lookup("communicator_" + masterNode); communicator.mapTaskFailed(task, e); } catch (RemoteException e1) { e1.printStackTrace(); } catch (NotBoundException e1) { e1.printStackTrace(); } }