public class JobLocalizer extends Object
限定符和类型 | 字段和说明 |
---|---|
protected static String |
JOB_LOCAL_CTXT |
protected JobConf |
ttConf |
构造器和说明 |
---|
JobLocalizer(JobConf ttConf,
String user,
String jobid) |
JobLocalizer(JobConf ttConf,
String user,
String jobid,
String... localDirs) |
限定符和类型 | 方法和说明 |
---|---|
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.
|
protected final JobConf ttConf
public JobLocalizer(JobConf ttConf, String user, String jobid) throws IOException
IOException
public JobLocalizer(JobConf ttConf, String user, String jobid, String... localDirs) throws IOException
IOException
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 configurationIOException
public void localizeJobFiles(JobID jobid, JobConf jConf, Path localJobTokenFile, TaskUmbilicalProtocol taskTracker) throws IOException, InterruptedException
public void localizeJobFiles(JobID jobid, JobConf jConf, Path localJobFile, Path localJobTokenFile, TaskUmbilicalProtocol taskTracker) throws 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
public static void main(String[] argv) throws IOException, InterruptedException
public static void writeLocalJobFile(Path jobFile, JobConf conf) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation