| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.Path |
dfsArchivePath |
protected File |
localArchivePath |
| Constructor and Description |
|---|
Localizer(DfsFacade dfs,
File archivePath,
org.apache.hadoop.fs.Path destPath,
String label) |
Localizer(DfsFacade dfs,
File archivePath,
String label)
Resources to be localized (downloaded) to each AM or drillbit node.
|
Localizer(DfsFacade dfs,
File archivePath,
String destName,
String label) |
Localizer(DfsFacade dfs,
String destPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
defineResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> resources,
String key) |
boolean |
destExists() |
boolean |
filesMatch() |
String |
getBaseName() |
String |
getDestPath() |
String |
getLabel() |
void |
upload() |
protected File localArchivePath
protected org.apache.hadoop.fs.Path dfsArchivePath
public Localizer(DfsFacade dfs, File archivePath, String label)
public String getBaseName()
public String getDestPath()
public void upload()
throws DfsFacade.DfsFacadeException
DfsFacade.DfsFacadeExceptionpublic void defineResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> resources, String key) throws DfsFacade.DfsFacadeException
DfsFacade.DfsFacadeExceptionpublic boolean filesMatch()
public String getLabel()
public boolean destExists()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.