/** * Submit a JAR containing a specific class, returning * the resource to be mapped in * * @param clazz class to look for * @param subdir subdirectory (expected to end in a "/") * @param jarName <i>At the destination</i> * @return the local resource ref * @throws IOException trouble copying to HDFS */ public LocalResource submitJarWithClass(Class clazz, Path tempPath, String subdir, String jarName) throws IOException, SliderException { File localFile = SliderUtils.findContainingJarOrFail(clazz); return submitFile(localFile, tempPath, subdir, jarName); }
/** * Submit a JAR containing a specific class, returning * the resource to be mapped in * * @param clazz class to look for * @param subdir subdirectory (expected to end in a "/") * @param jarName <i>At the destination</i> * @return the local resource ref * @throws IOException trouble copying to HDFS */ public LocalResource submitJarWithClass(Class clazz, Path tempPath, String subdir, String jarName) throws IOException, SliderException { File localFile = SliderUtils.findContainingJarOrFail(clazz); return submitFile(localFile, tempPath, subdir, jarName); }