Package org.springframework.yarn.test.junit

Examples of org.springframework.yarn.test.junit.ApplicationInfo


public class RestartContextTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(6));

    for (Resource res : resources) {
View Full Code Here


public class SimpleCommandTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    // appmaster and 4 containers should
    // make it 10 log files
    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(10));
View Full Code Here

public class BatchPartitionTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(10));

    for (Resource res : resources) {
View Full Code Here

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    createTestData();

    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(8));

    int linesFound = 0;
View Full Code Here

public class BatchAmjobTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    // only appmaster, 2 log files
    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(2));
View Full Code Here

public class CustomAmserviceTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=130000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait(120, TimeUnit.SECONDS);
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    assertThat(resources, notNullValue());
    assertThat(resources.size(), greaterThan(2));

    for (Resource res : resources) {
View Full Code Here

public abstract class MultiContextTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=120000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertNotNull(info.getYarnApplicationState());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    // appmaster and 4 containers should
    // make it 10 log files
    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(10));
View Full Code Here

TOP

Related Classes of org.springframework.yarn.test.junit.ApplicationInfo

Copyright © 2018 www.massapicom. 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.