public class JarManager
extends java.lang.Object
| Constructor and Description | 
|---|
| JarManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addDependencyJars(org.apache.hadoop.mapreduce.Job job,
                 java.lang.Class<?>... classes)Add the jars containing the given classes to the job's configuration
 such that JobClient will ship them to the cluster and add them to
 the DistributedCache | 
| static void | addPigTestJarIfPresent(java.util.Set<java.lang.String> jars)Adds jar file where pig test classes are packed (build/test/classes) | 
| static java.io.File | createPigScriptUDFJar(PigContext pigContext) | 
| static java.lang.String | findContainingJar(java.lang.Class my_class)Find a jar that contains a class of the same name, if any. | 
| static java.util.List<java.lang.String> | getDefaultJars() | 
public static java.io.File createPigScriptUDFJar(PigContext pigContext) throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<java.lang.String> getDefaultJars()
public static java.lang.String findContainingJar(java.lang.Class my_class)
my_class - the class to findjava.io.IOExceptionpublic static void addDependencyJars(org.apache.hadoop.mapreduce.Job job,
                                     java.lang.Class<?>... classes)
                              throws java.io.IOException
job - Job objectclasses - classes to findjava.io.IOExceptionpublic static void addPigTestJarIfPresent(java.util.Set<java.lang.String> jars)
jars - Set of jars to append pig tests jar intoCopyright © 2007-2025 The Apache Software Foundation