Package org.springframework.yarn.fs

Examples of org.springframework.yarn.fs.SmartResourceLocalizer


    // localizer distribute will kick off too early
    ApplicationId applicationId = clientRmOperations.getNewApplication().getApplicationId();
    log.info("submitApplication, got applicationId=[" + applicationId + "]");

    if (resourceLocalizer instanceof SmartResourceLocalizer) {
      SmartResourceLocalizer smartResourceLocalizer = (SmartResourceLocalizer)resourceLocalizer;
      smartResourceLocalizer.setStagingId(applicationId.toString());
      if (!distribute) {
        smartResourceLocalizer.resolve();
      } else {
        smartResourceLocalizer.distribute();
      }
    } else {
      log.warn("Resource localizer is not instance of SmartResourceLocalizer, thus we're unable to resolve and distrute manually");
    }
View Full Code Here

TOP

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

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.