/** * Returns the {@link ActorGateway} of the current job manager leader using * the {@link LeaderRetrievalService}. * * @return ActorGateway of the current job manager leader * @throws Exception */ public ActorGateway getJobManagerGateway() throws FlinkException { log.debug("Looking up JobManager"); try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystemLoader.get(), lookupTimeout); } catch (LeaderRetrievalException lre) { throw new FlinkException("Could not connect to the leading JobManager. Please check that the " + "JobManager is running.", lre); } }
private ActorGateway getJobManager() throws JobRetrievalException { try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystem, AkkaUtils.getLookupTimeout(configuration)); } catch (Exception e) { throw new JobRetrievalException(jobID, "Couldn't retrieve leading JobManager.", e); } } }
private ActorGateway getJobManager() throws JobRetrievalException { try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystem, AkkaUtils.getLookupTimeout(configuration)); } catch (Exception e) { throw new JobRetrievalException(jobID, "Couldn't retrieve leading JobManager.", e); } } }
/** * Returns the {@link ActorGateway} of the current job manager leader using * the {@link LeaderRetrievalService}. * * @return ActorGateway of the current job manager leader * @throws Exception */ public ActorGateway getJobManagerGateway() throws Exception { LOG.debug("Looking up JobManager"); try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystemLoader.get(), lookupTimeout); } catch (LeaderRetrievalException lre) { throw new FlinkException("Could not connect to the leading JobManager. Please check that the " + "JobManager is running.", lre); } }
private ActorGateway getJobManager() throws JobRetrievalException { try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystem, AkkaUtils.getLookupTimeout(configuration)); } catch (Exception e) { throw new JobRetrievalException(jobID, "Couldn't retrieve leading JobManager.", e); } } }
private ActorGateway getJobManager() throws JobRetrievalException { try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystem, AkkaUtils.getLookupTimeout(configuration)); } catch (Exception e) { throw new JobRetrievalException(jobID, "Couldn't retrieve leading JobManager.", e); } } }
/** * Returns the {@link ActorGateway} of the current job manager leader using * the {@link LeaderRetrievalService}. * * @return ActorGateway of the current job manager leader * @throws Exception */ public ActorGateway getJobManagerGateway() throws FlinkException { log.debug("Looking up JobManager"); try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystemLoader.get(), lookupTimeout); } catch (LeaderRetrievalException lre) { throw new FlinkException("Could not connect to the leading JobManager. Please check that the " + "JobManager is running.", lre); } }
/** * Returns the {@link ActorGateway} of the current job manager leader using * the {@link LeaderRetrievalService}. * * @return ActorGateway of the current job manager leader * @throws Exception */ public ActorGateway getJobManagerGateway() throws FlinkException { log.debug("Looking up JobManager"); try { return LeaderRetrievalUtils.retrieveLeaderGateway( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), actorSystemLoader.get(), lookupTimeout); } catch (LeaderRetrievalException lre) { throw new FlinkException("Could not connect to the leading JobManager. Please check that the " + "JobManager is running.", lre); } }
public ActorGateway getJobManagerGateway() throws Exception { ActorSystem actorSystem; scala.Tuple2<String, Object> systemEndpoint = new scala.Tuple2<>("", 0); try { actorSystem = AkkaUtils.createActorSystem( config, new Some<>(systemEndpoint)); } catch (Exception e) { throw new IOException("Could not start actor system to communicate with JobManager", e); } //LeaderRetrievalService lrs = LeaderRetrievalUtils.createLeaderRetrievalService(config); LeaderRetrievalService lrs = HighAvailabilityServicesUtils.createHighAvailabilityServices( config, Executors.directExecutor(), HighAvailabilityServicesUtils.AddressResolution.TRY_ADDRESS_RESOLUTION).getJobManagerLeaderRetriever (HighAvailabilityServices.DEFAULT_JOB_ID); return LeaderRetrievalUtils.retrieveLeaderGateway(lrs, actorSystem, lookupTimeout); }