Class JobUtil
java.lang.Object
org.apache.hadoop.hbase.mapreduce.JobUtil
Utility methods to interact with a job.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.fs.Path
getQualifiedStagingDir
(org.apache.hadoop.conf.Configuration conf) Initializes the staging directory and returns the qualified path.static org.apache.hadoop.fs.Path
getStagingDir
(org.apache.hadoop.conf.Configuration conf) Initializes the staging directory and returns the path.
-
Constructor Details
-
JobUtil
protected JobUtil()
-
-
Method Details
-
getStagingDir
public static org.apache.hadoop.fs.Path getStagingDir(org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException Initializes the staging directory and returns the path.- Parameters:
conf
- system configuration- Returns:
- staging directory path
- Throws:
IOException
- if the ownership on the staging directory is not as expectedInterruptedException
- if the thread getting the staging directory is interrupted
-
getQualifiedStagingDir
public static org.apache.hadoop.fs.Path getQualifiedStagingDir(org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException Initializes the staging directory and returns the qualified path.- Parameters:
conf
- conf system configuration- Returns:
- qualified staging directory path
- Throws:
IOException
- if the ownership on the staging directory is not as expectedInterruptedException
- if the thread getting the staging directory is interrupted
-