@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class JobUtil extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JobUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.Path |
getStagingDir(org.apache.hadoop.conf.Configuration conf)
Initializes the staging directory and returns the path.
|
public static org.apache.hadoop.fs.Path getStagingDir(org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
CLOUDERA-SPECIFIC-NOTE: MR1 and MR2 are incompatible regarding getStagingDir() API.
The following code is to handle both MR1 and MR2 at compile/run time. This is done using reflection to figure out the right API.
conf - system configurationIOExceptionInterruptedExceptionCopyright © 2007–2016 Cloudera. All rights reserved.