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 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.IOException
public 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.IOException
public static void addDependencyJars(org.apache.hadoop.mapreduce.Job job, java.lang.Class<?>... classes) throws java.io.IOException
job
- Job objectclasses
- classes to findjava.io.IOException
Copyright © 2007-2017 The Apache Software Foundation