private DispatcherGateway getDispatcherGateway() throws LeaderRetrievalException, InterruptedException { synchronized (lock) { checkState(running, "MiniCluster is not yet running."); try { return dispatcherGatewayRetriever.getFuture().get(); } catch (ExecutionException e) { throw new LeaderRetrievalException("Could not retrieve the leading dispatcher.", ExceptionUtils.stripExecutionException(e)); } } }
private DispatcherGateway getDispatcherGateway() throws LeaderRetrievalException, InterruptedException { synchronized (lock) { checkState(running, "MiniCluster is not yet running."); try { return dispatcherGatewayRetriever.getFuture().get(); } catch (ExecutionException e) { throw new LeaderRetrievalException("Could not retrieve the leading dispatcher.", ExceptionUtils.stripExecutionException(e)); } } }
private DispatcherGateway getDispatcherGateway() throws LeaderRetrievalException, InterruptedException { synchronized (lock) { checkState(running, "MiniCluster is not yet running."); try { return dispatcherGatewayRetriever.getFuture().get(); } catch (ExecutionException e) { throw new LeaderRetrievalException("Could not retrieve the leading dispatcher.", ExceptionUtils.stripExecutionException(e)); } } }
public static InetAddress findConnectingAddress( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { ConnectionUtils.LeaderConnectingAddressListener listener = new ConnectionUtils.LeaderConnectingAddressListener(); try { leaderRetrievalService.start(listener); LOG.info("Trying to select the network interface and address to use " + "by connecting to the leading JobManager."); LOG.info("TaskManager will try to connect for " + timeout + " before falling back to heuristics"); return listener.findConnectingAddress(timeout); } catch (Exception e) { throw new LeaderRetrievalException("Could not find the connecting address by " + "connecting to the current leader.", e); } finally { try { leaderRetrievalService.stop(); } catch (Exception fe) { LOG.warn("Could not stop the leader retrieval service.", fe); } } }
public static InetAddress findConnectingAddress( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { ConnectionUtils.LeaderConnectingAddressListener listener = new ConnectionUtils.LeaderConnectingAddressListener(); try { leaderRetrievalService.start(listener); LOG.info("Trying to select the network interface and address to use " + "by connecting to the leading JobManager."); LOG.info("TaskManager will try to connect for " + timeout + " before falling back to heuristics"); return listener.findConnectingAddress(timeout); } catch (Exception e) { throw new LeaderRetrievalException("Could not find the connecting address by " + "connecting to the current leader.", e); } finally { try { leaderRetrievalService.stop(); } catch (Exception fe) { LOG.warn("Could not stop the leader retrieval service.", fe); } } }
public static InetAddress findConnectingAddress( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { ConnectionUtils.LeaderConnectingAddressListener listener = new ConnectionUtils.LeaderConnectingAddressListener(); try { leaderRetrievalService.start(listener); LOG.info("Trying to select the network interface and address to use " + "by connecting to the leading JobManager."); LOG.info("TaskManager will try to connect for " + timeout + " before falling back to heuristics"); return listener.findConnectingAddress(timeout); } catch (Exception e) { throw new LeaderRetrievalException("Could not find the connecting address by " + "connecting to the current leader.", e); } finally { try { leaderRetrievalService.stop(); } catch (Exception fe) { LOG.warn("Could not stop the leader retrieval service.", fe); } } }
public static InetAddress findConnectingAddress( LeaderRetrievalService leaderRetrievalService, FiniteDuration timeout) throws LeaderRetrievalException { ConnectionUtils.LeaderConnectingAddressListener listener = new ConnectionUtils.LeaderConnectingAddressListener(); try { leaderRetrievalService.start(listener); LOG.info("Trying to select the network interface and address to use " + "by connecting to the leading JobManager."); LOG.info("TaskManager will try to connect for " + timeout + " before falling back to heuristics"); return listener.findConnectingAddress(timeout); } catch (Exception e) { throw new LeaderRetrievalException("Could not find the connecting address by " + "connecting to the current leader.", e); } finally { try { leaderRetrievalService.stop(); } catch (Exception fe) { LOG.warn("Could not stop the leader retrieval service.", fe); } } }
throw new LeaderRetrievalException("Could not retrieve the leader gateway.", e); } finally { try {
throw new LeaderRetrievalException("Could not retrieve the leader address and leader " + "session ID.", e); } finally {
throw new LeaderRetrievalException("Could not retrieve the leader address and leader " + "session ID.", e); } finally {
throw new LeaderRetrievalException("Could not retrieve the leader address and leader " + "session ID.", e); } finally {
throw new LeaderRetrievalException("Could not retrieve the leader gateway.", e); } finally { try {
throw new LeaderRetrievalException("Could not retrieve the leader gateway.", e); } finally { try {
throw new LeaderRetrievalException("Could not retrieve the leader address and leader " + "session ID.", e); } finally {
throw new LeaderRetrievalException("Could not retrieve the leader gateway.", e); } finally { try {