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 void |
createJar(OutputStream os,
Set<String> funcs,
PigContext pigContext)
Create a jarfile in a temporary path, that is a merge of all the jarfiles containing the
functions and the core pig classes.
|
static String |
findContainingJar(Class my_class)
Find a jar that contains a class of the same name, if any.
|
public static void createJar(OutputStream os, Set<String> funcs, PigContext pigContext) throws ClassNotFoundException, IOException
funcs - the functions that will be used in a job and whose jar files need to be included
in the final merged jar file.ClassNotFoundExceptionIOExceptionpublic 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-2012 The Apache Software Foundation