Package org.springframework.yarn.fs

Examples of org.springframework.yarn.fs.MultiResourceLocalizer


    @Override
    public ContainerLaunchContext preLaunch(Container container, ContainerLaunchContext context) {
      ContainerCluster cluster = findContainerClusterByContainer(container);
      if (getResourceLocalizer() instanceof MultiResourceLocalizer) {
        if (cluster != null) {
          MultiResourceLocalizer loc = (MultiResourceLocalizer) getResourceLocalizer();
          Map<String, LocalResource> resources = loc.getResources(clusterIdToRef.get(cluster.getId()));
          context.setLocalResources(resources);
        }
      } else {
        log.warn("Can't use container specific local resources because MultiResourceLocalizer expected instead of "
            + getResourceLocalizer());
View Full Code Here

TOP

Related Classes of org.springframework.yarn.fs.MultiResourceLocalizer

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.