Examples of YarnAppmaster


Examples of org.springframework.yarn.am.YarnAppmaster

            "spring.yarn.appmaster.containercluster.enabled:true");
    context.register(ContainerClusterStateMachineConfiguration.class,
        YarnAppmasterAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class);
    context.refresh();
    assertNotNull(context.getBean(YarnAppmaster.class));
    YarnAppmaster appmaster = context.getBean(YarnAppmaster.class);
    GridProjectionFactoryLocator locator = TestUtils.readField("gridProjectionFactoryLocator", appmaster);
    Set<GridProjectionFactory> factories = TestUtils.readField("factories", locator);
    assertThat(factories.size(), is(1));
    GridProjectionFactory factory = factories.iterator().next();
    assertThat(factory.getRegisteredProjectionTypes().size(), is(3));
View Full Code Here

Examples of org.springframework.yarn.am.YarnAppmaster

            "spring.yarn.appmaster.containercluster.enabled:true");
    context.register(ContainerClusterStateMachineConfiguration.class, TestConfig1WithClass.class,
        YarnAppmasterAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class);
    context.refresh();
    assertNotNull(context.getBean(YarnAppmaster.class));
    YarnAppmaster appmaster = context.getBean(YarnAppmaster.class);
    GridProjectionFactoryLocator locator = TestUtils.readField("gridProjectionFactoryLocator", appmaster);
    Set<GridProjectionFactory> factories = TestUtils.readField("factories", locator);
    assertThat(factories.size(), is(1));
    GridProjectionFactory factory = factories.iterator().next();
    assertThat(factory.getRegisteredProjectionTypes().size(), is(1));
View Full Code Here

Examples of org.springframework.yarn.am.YarnAppmaster

            "spring.yarn.appmaster.containercluster.enabled:true");
    context.register(ContainerClusterStateMachineConfiguration.class, TestConfig2WithClass.class,
        YarnAppmasterAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class);
    context.refresh();
    assertNotNull(context.getBean(YarnAppmaster.class));
    YarnAppmaster appmaster = context.getBean(YarnAppmaster.class);
    GridProjectionFactoryLocator locator = TestUtils.readField("gridProjectionFactoryLocator", appmaster);
    Set<GridProjectionFactory> factories = TestUtils.readField("factories", locator);
    assertThat(factories.size(), is(2));
  }
View Full Code Here

Examples of org.springframework.yarn.am.YarnAppmaster

  }

  @Override
  protected YarnAppmaster performBuild() throws Exception {

    YarnAppmaster appmaster = BeanUtils.instantiate(appmasterClass);

    if (appmaster instanceof AbstractAppmaster) {
      AbstractAppmaster abstractAppmaster = (AbstractAppmaster) appmaster;
      for (Entry<String, String[]> entry : commands.entrySet()) {
        abstractAppmaster.setCommands(entry.getKey(), entry.getValue());
View Full Code Here

Examples of org.springframework.yarn.am.YarnAppmaster

    assertNotNull(ctx);
    assertTrue(ctx.containsBean("yarnConfiguration"));
    YarnConfiguration config = (YarnConfiguration) ctx.getBean("yarnConfiguration");
    assertNotNull(config);

    YarnAppmaster master = (YarnAppmaster) ctx.getBean("yarnAppmaster");
    assertNotNull(master);

    assertTrue(ctx.containsBean("yarnLocalresources"));
    ResourceLocalizer localizer = (ResourceLocalizer) ctx.getBean("yarnLocalresources");
    assertNotNull(localizer);
View Full Code Here

Examples of org.springframework.yarn.am.YarnAppmaster

  @Autowired
  private ApplicationContext ctx;

  @Test
  public void testSimpleConfig() throws Exception {
    YarnAppmaster master = (YarnAppmaster) ctx.getBean("yarnAppmaster");
    assertNotNull(master);

    ContainerAllocator allocator = TestUtils.callMethod("getAllocator", master);
    assertNotNull(allocator);
  }
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.