/** * Submit the AM tar.gz resource referenced by the instance's cluster * filesystem. Also, update the providerResources object with the new * resource. * * @param providerResources * the provider resource map to be updated * @throws IOException * trouble copying to HDFS */ public void submitTarGzipAndUpdate( Map<String, LocalResource> providerResources) throws IOException, BadClusterStateException { Path dependencyLibTarGzip = getDependencyTarGzip(); log.info("Loading all dependencies from {}", dependencyLibTarGzip); LocalResource lc = createAmResource(dependencyLibTarGzip, LocalResourceType.ARCHIVE); providerResources.put(SliderKeys.SLIDER_DEPENDENCY_LOCALIZED_DIR_LINK, lc); }
/** * Submit the AM tar.gz resource referenced by the instance's cluster * filesystem. Also, update the providerResources object with the new * resource. * * @param providerResources * the provider resource map to be updated * @throws IOException * trouble copying to HDFS */ public void submitTarGzipAndUpdate( Map<String, LocalResource> providerResources) throws IOException, BadClusterStateException { Path dependencyLibTarGzip = getDependencyTarGzip(); log.info("Loading all dependencies from {}", dependencyLibTarGzip); LocalResource lc = createAmResource(dependencyLibTarGzip, LocalResourceType.ARCHIVE); providerResources.put(SliderKeys.SLIDER_DEPENDENCY_LOCALIZED_DIR_LINK, lc); }