Exemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 public static void SetupDistributedCache(Configuration conf, IDictionary <string,
                                                                           LocalResource> localResources)
 {
     // Cache archives
     ParseDistributedCacheArtifacts(conf, localResources, LocalResourceType.Archive, DistributedCache
                                    .GetCacheArchives(conf), DistributedCache.GetArchiveTimestamps(conf), GetFileSizes
                                        (conf, MRJobConfig.CacheArchivesSizes), DistributedCache.GetArchiveVisibilities(
                                        conf));
     // Cache files
     ParseDistributedCacheArtifacts(conf, localResources, LocalResourceType.File, DistributedCache
                                    .GetCacheFiles(conf), DistributedCache.GetFileTimestamps(conf), GetFileSizes(conf
                                                                                                                 , MRJobConfig.CacheFilesSizes), DistributedCache.GetFileVisibilities(conf));
 }