|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.JobLocalizer
public class JobLocalizer
Internal class responsible for initializing the job, not intended for users. Creates the following hierarchy:
Field Summary | |
---|---|
protected static String |
JOB_LOCAL_CTXT
|
protected JobConf |
ttConf
|
Constructor Summary | |
---|---|
JobLocalizer(JobConf ttConf,
String user,
String jobid)
|
|
JobLocalizer(JobConf ttConf,
String user,
String jobid,
String... localDirs)
|
Method Summary | |
---|---|
void |
createJobDirs()
Prepare the job directories for a given job. |
void |
createLocalDirs()
|
void |
createUserDirs()
Initialize the local directories for a particular user on this TT. |
void |
createWorkDir(JobConf jConf)
|
static long[] |
downloadPrivateCache(Configuration conf)
Download the parts of the distributed cache that are private. |
Path |
findCredentials()
|
void |
initializeJobLogDir()
Create job log directory and set appropriate permissions for the directory. |
void |
localizeJobFiles(JobID jobid,
JobConf jConf,
Path localJobFile,
Path localJobTokenFile,
TaskUmbilicalProtocol taskTracker)
|
void |
localizeJobFiles(JobID jobid,
JobConf jConf,
Path localJobTokenFile,
TaskUmbilicalProtocol taskTracker)
|
static void |
main(String[] argv)
|
int |
runSetup(String user,
String jobid,
Path localJobTokenFile,
TaskUmbilicalProtocol taskTracker)
|
static void |
writeLocalJobFile(Path jobFile,
JobConf conf)
Write the task specific job-configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final JobConf ttConf
protected static final String JOB_LOCAL_CTXT
Constructor Detail |
---|
public JobLocalizer(JobConf ttConf, String user, String jobid) throws IOException
IOException
public JobLocalizer(JobConf ttConf, String user, String jobid, String... localDirs) throws IOException
IOException
Method Detail |
---|
public void createLocalDirs() throws IOException
IOException
public void createUserDirs() throws IOException
IOException
public void createJobDirs() 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.
IOException
public void initializeJobLogDir() throws IOException
IOException
public static long[] downloadPrivateCache(Configuration conf) throws IOException
conf
- the job's configuration
IOException
public void localizeJobFiles(JobID jobid, JobConf jConf, Path localJobTokenFile, TaskUmbilicalProtocol taskTracker) throws IOException, InterruptedException
IOException
InterruptedException
public void localizeJobFiles(JobID jobid, JobConf jConf, Path localJobFile, Path localJobTokenFile, TaskUmbilicalProtocol taskTracker) throws IOException, InterruptedException
IOException
InterruptedException
public void createWorkDir(JobConf jConf) throws IOException
IOException
public Path findCredentials() throws IOException
IOException
public int runSetup(String user, String jobid, Path localJobTokenFile, TaskUmbilicalProtocol taskTracker) throws IOException, InterruptedException
IOException
InterruptedException
public static void main(String[] argv) throws IOException, InterruptedException
IOException
InterruptedException
public static void writeLocalJobFile(Path jobFile, JobConf conf) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |