public class JarManager extends Object
| Constructor and Description |
|---|
JarManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDependencyJars(org.apache.hadoop.mapreduce.Job job,
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 File |
createPigScriptUDFJar(PigContext pigContext) |
static String |
findContainingJar(Class my_class)
Find a jar that contains a class of the same name, if any.
|
static List<String> |
getDefaultJars() |
public static File createPigScriptUDFJar(PigContext pigContext) throws IOException
IOExceptionpublic static String findContainingJar(Class my_class)
my_class - the class to findIOExceptionpublic static void addDependencyJars(org.apache.hadoop.mapreduce.Job job,
Class<?>... classes)
throws IOException
job - Job objectclasses - classes to findIOExceptionCopyright © 2007-2017 The Apache Software Foundation