@Override public void onExecutorRemoved(SparkListenerExecutorRemoved sparkListenerExecutorRemoved) { log.error("Spark executor '" + sparkListenerExecutorRemoved.executorId() + "' removed due to " + sparkListenerExecutorRemoved.reason()); }
@Override public void onExecutorRemoved(SparkListenerExecutorRemoved executorRemoved) { try { sendExecutorStateEvent(executorRemoved.time(), State.REMOVED, executorRemoved.executorId(), executorHostId.getOrDefault(executorRemoved.executorId(), "UNKNOWN"), executorRemoved.reason(), 0); } catch (Throwable t) { LOGGER.warn("Failed to send event for onExecutorRemoved", t); } }