/** * Adds the jars from a directory into the distributed cache of a job. * * @param job The job to configure. * @param jarDirectory A path to a directory of jar files. * @throws IOException If there is a problem reading from the file system. */ public static void addJarsToDistributedCache(Job job, String jarDirectory) throws IOException { addJarsToDistributedCache(job, new File(jarDirectory)); }
DistributedCacheJars.addJarsToDistributedCache( job, new File(System.getenv("FIJI_HOME"), "lib")); FijiMRPlatformBridge.get().setUserClassesTakesPrecedence(job, true);
DistributedCacheJars.addJarsToDistributedCache( job, new File(System.getenv("FIJI_HOME"), "lib")); FijiMRPlatformBridge.get().setUserClassesTakesPrecedence(job, true);
DistributedCacheJars.addJarsToDistributedCache(job, new File(System.getenv("FIJI_HOME"), "lib")); FijiMRPlatformBridge.get().setUserClassesTakesPrecedence(job, true);