public class TezResourceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,org.apache.hadoop.fs.Path> |
resources |
| Constructor and Description |
|---|
TezResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTezResource(String resourceName,
org.apache.hadoop.fs.Path remoteFsPath) |
org.apache.hadoop.fs.Path |
addTezResource(URI uri) |
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
addTezResources(Set<URI> resources) |
static TezResourceManager |
getInstance() |
org.apache.hadoop.fs.Path |
getStagingDir() |
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getTezResources(Set<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 IOException
IOExceptionpublic org.apache.hadoop.fs.Path getStagingDir()
public org.apache.hadoop.fs.Path addTezResource(URI uri) throws IOException
IOExceptionpublic void addTezResource(String resourceName, org.apache.hadoop.fs.Path remoteFsPath) throws IOException
IOExceptionpublic Map<String,org.apache.hadoop.yarn.api.records.LocalResource> addTezResources(Set<URI> resources) throws Exception
ExceptionCopyright © 2007-2012 The Apache Software Foundation