public class TezResourceManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,org.apache.hadoop.fs.Path> |
resources |
| Constructor and Description |
|---|
TezResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTezResource(java.lang.String resourceName,
org.apache.hadoop.fs.Path remoteFsPath) |
org.apache.hadoop.fs.Path |
addTezResource(java.net.URI uri) |
java.util.Map<java.lang.String,LocalResource> |
addTezResources(java.util.Set<java.net.URI> resources) |
static TezResourceManager |
getInstance() |
org.apache.hadoop.fs.Path |
getStagingDir() |
java.util.Map<java.lang.String,LocalResource> |
getTezResources(java.util.Set<java.lang.String> resourceNames) |
void |
init(PigContext pigContext,
org.apache.hadoop.conf.Configuration conf) |
public static TezResourceManager getInstance()
public void init(PigContext pigContext, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.fs.Path getStagingDir()
public org.apache.hadoop.fs.Path addTezResource(java.net.URI uri)
throws java.io.IOException
java.io.IOExceptionpublic void addTezResource(java.lang.String resourceName,
org.apache.hadoop.fs.Path remoteFsPath)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,LocalResource> addTezResources(java.util.Set<java.net.URI> resources)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.String,LocalResource> getTezResources(java.util.Set<java.lang.String> resourceNames)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2007-2012 The Apache Software Foundation