@Override public void onExecutorAdded(SparkListenerExecutorAdded executorAdded) { try { executorHostId.put(executorAdded.executorId(), executorAdded.executorInfo().executorHost()); sendExecutorStateEvent(executorAdded.time(), State.ADDED, executorAdded.executorId(), executorAdded.executorInfo().executorHost(), null, 0); } catch (Throwable t) { LOGGER.warn("Failed to send event for onExecutorAdded", t); } }