public class Localizer extends Object
| Constructor and Description |
|---|
Localizer(org.apache.hadoop.fs.FileSystem fileSys,
String[] lDirs)
Create a Localizer instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
initializeAttemptDirs(String user,
String jobId,
String attemptId)
Create taskDirs on all the disks.
|
void |
initializeJobDirs(String user,
JobID jobId)
Prepare the job directories for a given job.
|
void |
initializeJobLogDir(JobID jobId)
Create job log directory and set appropriate permissions for the directory.
|
void |
initializeUserDirs(String user)
Initialize the local directories for a particular user on this TT.
|
public Localizer(org.apache.hadoop.fs.FileSystem fileSys,
String[] lDirs)
fileSys - lDirs - public void initializeUserDirs(String user) throws IOException
user - IOExceptionpublic void initializeJobDirs(String user, JobID jobId) throws IOException
TaskController.initializeJob(java.lang.String, java.lang.String, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path, org.apache.hadoop.mapred.TaskUmbilicalProtocol, java.net.InetSocketAddress) is run at a
later time to set proper private permissions on the job directories. user - jobId - IOExceptionpublic void initializeAttemptDirs(String user, String jobId, String attemptId) throws IOException
user - jobId - attemptId - IOExceptionpublic void initializeJobLogDir(JobID jobId) throws IOException
jobId - IOExceptionCopyright © 2009 The Apache Software Foundation