@Override public void connectedToJobManager() { if (jobGraph != null && !jobSuccessfullySubmitted) { // if we haven't yet submitted the job successfully tryToSubmitJob(); } }
if (jobGraph == null) { LOG.error("Received null JobGraph"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobGraph is null"))), getSelf()); } else { LOG.info("Received job {} ({}).", jobGraph.getName(), jobGraph.getJobID()); this.client = getSender(); tryToSubmitJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); getSender().path()); jobSuccessfullySubmitted = true; } else if (JobClientMessages.getSubmissionTimeout().equals(message)) { if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorSubmissionTimeoutException("Job submission to the JobManager timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager " + "needs more time to configure and confirm the job submission."))), getSelf());
getContext().dispatcher()); decorateMessage( new JobManagerMessages.SubmitJob( jobGraph, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getSubmissionTimeout()), getContext().dispatcher(), ActorRef.noSender()); }) (Void ignored, Throwable throwable) -> { if (throwable != null) { getSelf().tell( decorateMessage(new JobManagerMessages.JobResultFailure( new SerializedThrowable(ExceptionUtils.stripCompletionException(throwable)))), ActorRef.noSender());
jobGraph.uploadUserJars(jobManagerGateway, timeout, clientConfig); } catch (IOException exception) { getSelf().tell( decorateMessage(new JobManagerMessages.JobResultFailure( new SerializedThrowable( jobGraph, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getSubmissionTimeout()), getContext().dispatcher(), ActorRef.noSender());
Props jobClientActorProps = JobSubmissionClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
}, getContext().dispatcher());
if (jobGraph == null) { LOG.error("Received null JobGraph"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobGraph is null"))), getSelf()); } else { LOG.info("Received job {} ({}).", jobGraph.getName(), jobGraph.getJobID()); this.client = getSender(); tryToSubmitJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); getSender().path()); jobSuccessfullySubmitted = true; } else if (JobClientMessages.getSubmissionTimeout().equals(message)) { if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorSubmissionTimeoutException("Job submission to the JobManager timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager " + "needs more time to configure and confirm the job submission."))), getSelf());
getContext().dispatcher()); decorateMessage( new JobManagerMessages.SubmitJob( jobGraph, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getSubmissionTimeout()), getContext().dispatcher(), ActorRef.noSender()); }) (Void ignored, Throwable throwable) -> { if (throwable != null) { getSelf().tell( decorateMessage(new JobManagerMessages.JobResultFailure( new SerializedThrowable(ExceptionUtils.stripCompletionException(throwable)))), ActorRef.noSender());
Props jobClientActorProps = JobSubmissionClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
if (jobGraph == null) { LOG.error("Received null JobGraph"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobGraph is null"))), getSelf()); } else { LOG.info("Received job {} ({}).", jobGraph.getName(), jobGraph.getJobID()); this.client = getSender(); tryToSubmitJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); getSender().path()); jobSuccessfullySubmitted = true; } else if (JobClientMessages.getSubmissionTimeout().equals(message)) { if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorSubmissionTimeoutException("Job submission to the JobManager timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager " + "needs more time to configure and confirm the job submission."))), getSelf());
getContext().dispatcher()); decorateMessage( new JobManagerMessages.SubmitJob( jobGraph, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getSubmissionTimeout()), getContext().dispatcher(), ActorRef.noSender()); }) (Void ignored, Throwable throwable) -> { if (throwable != null) { getSelf().tell( decorateMessage(new JobManagerMessages.JobResultFailure( new SerializedThrowable(ExceptionUtils.stripCompletionException(throwable)))), ActorRef.noSender());
@Override public void connectedToJobManager() { if (jobGraph != null && !jobSuccessfullySubmitted) { // if we haven't yet submitted the job successfully tryToSubmitJob(); } }
Props jobClientActorProps = JobSubmissionClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
if (jobGraph == null) { LOG.error("Received null JobGraph"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobGraph is null"))), getSelf()); } else { LOG.info("Received job {} ({}).", jobGraph.getName(), jobGraph.getJobID()); this.client = getSender(); tryToSubmitJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); getSender().path()); jobSuccessfullySubmitted = true; } else if (JobClientMessages.getSubmissionTimeout().equals(message)) { if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorSubmissionTimeoutException("Job submission to the JobManager timed out. " + "You may increase '" + ConfigConstants.AKKA_CLIENT_TIMEOUT + "' in case the JobManager " + "needs more time to configure and confirm the job submission."))), getSelf());
@Override public void connectedToJobManager() { if (jobGraph != null && !jobSuccessfullySubmitted) { // if we haven't yet submitted the job successfully tryToSubmitJob(); } }
Props jobClientActorProps = JobSubmissionClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
@Override public void connectedToJobManager() { if (jobGraph != null && !jobSuccessfullySubmitted) { // if we haven't yet submitted the job successfully tryToSubmitJob(); } }