Examples of submitApplication()


Examples of org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitApplication()

            false, // unmanaged AM
            true, // cancelTokens
            1, // max app attempts
            Resource.newInstance(1024, 1));
    ClientRMService rmService = rm1.getClientRMService();
    rmService.submitApplication(SubmitApplicationRequest.newInstance(asc));

    for (int i = 0; i < 30; i++) {
      if (HAServiceProtocol.HAServiceState.ACTIVE ==
          rm1.getRMContext().getRMAdminService().getServiceStatus().getState()) {
        Thread.sleep(100);
View Full Code Here

Examples of org.apache.slider.core.launch.AppMasterLauncher.submitApplication()

    // Ignore the response as either a valid response object is returned on success
    // or an exception thrown to denote some form of a failure
   

    // submit the application
    LaunchedApplication launchedApplication = amLauncher.submitApplication();
    return launchedApplication;
  }
 
 
  /**
 
View Full Code Here

Examples of org.apache.slider.core.launch.AppMasterLauncher.submitApplication()

    // Ignore the response as either a valid response object is returned on success
    // or an exception thrown to denote some form of a failure
   

    // submit the application
    LaunchedApplication launchedApplication = amLauncher.submitApplication();
    return launchedApplication;
  }
 
 
  /**
 
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.GenericApplication.submitApplication()

        RenderUtils.invalidateViewState();
        final GenericApplication application = getDomainObject(request, "applicationExternalId");
        final String confirmationCode = (String) getFromRequest(request, "confirmationCode");
        if (application != null && confirmationCode != null && application.getConfirmationCode() != null
                && application.getConfirmationCode().equals(confirmationCode)) {
            application.submitApplication();
            request.setAttribute("applicationSaved", Boolean.TRUE);
        }
        return confirmEmail(mapping, form, request, response);
    }
View Full Code Here

Examples of org.springframework.yarn.client.YarnClient.submitApplication()

  private void doSubmitAndAssert() throws Exception {
    YarnClient client = (YarnClient) ctx.getBean("yarnClient");
    assertThat(client, notNullValue());

    ApplicationId applicationId = client.submitApplication();
    assertThat(applicationId, notNullValue());

    YarnApplicationState state = null;
    for (int i = 0; i<120; i++) {
      state = findState(client, applicationId);
View Full Code Here

Examples of org.springframework.yarn.client.YarnClient.submitApplication()

        SpringYarnProperties syp = context.getBean(SpringYarnProperties.class);
        String applicationdir = SpringYarnBootUtils.resolveApplicationdir(syp);
        if (client instanceof ApplicationYarnClient) {
          return ((ApplicationYarnClient)client).submitApplication(new ApplicationDescriptor(applicationdir));
        } else {
          return client.submitApplication(false);
        }
      }

    }, args);
  }
View Full Code Here

Examples of org.springframework.yarn.client.YarnClient.submitApplication()

      ConfigurableApplicationContext context = null;
      try {
        context = new ClassPathXmlApplicationContext("application-context.xml");
        System.out.println("Submitting kill-application example");
        YarnClient client = (YarnClient) context.getBean("yarnClient");
        ApplicationId applicationId = client.submitApplication();
        System.out.println("Submitted kill-application example");
        System.out.println("Waiting 30 seconds before aborting the application");
        Thread.sleep(30000);
        System.out.println("Asking resource manager to abort application with applicationid=" + applicationId);
        client.killApplication(applicationId);
View Full Code Here

Examples of org.springframework.yarn.client.YarnClient.submitApplication()

    YarnClient client = ctx.getBean(YarnClient.class);
    if (install) {
      client.installApplication();
    }
    if (submit) {
      client.submitApplication(false);
    }
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.