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,org.apache.hadoop.yarn.api.records.LocalResource> |
addTezResources(java.util.Set<java.net.URI> resources) |
static void |
dropInstance()
This method is only used by test code to reset state.
|
static TezResourceManager |
getInstance() |
org.apache.hadoop.fs.Path |
getResourcesDir() |
java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> |
getTezResources(java.util.Set<java.lang.String> resourceNames) |
void |
init(PigContext pigContext,
org.apache.hadoop.conf.Configuration conf) |
public static TezResourceManager getInstance()
public static void dropInstance()
public void init(PigContext pigContext, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.fs.Path getResourcesDir()
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,org.apache.hadoop.yarn.api.records.LocalResource> addTezResources(java.util.Set<java.net.URI> resources)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> getTezResources(java.util.Set<java.lang.String> resourceNames)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2007-2025 The Apache Software Foundation