rjob.ugi.doAs(new PrivilegedExceptionAction<Object>() {
public Object run() throws IOException, InterruptedException {
try {
final JobConf localJobConf = new JobConf(localJobFile);
// Setup the public distributed cache
TaskDistributedCacheManager taskDistributedCacheManager =
getTrackerDistributedCacheManager()
.newTaskDistributedCacheManager(jobId, localJobConf);
rjob.distCacheMgr = taskDistributedCacheManager;
taskDistributedCacheManager.setupCache(localJobConf,
TaskTracker.getPublicDistributedCacheDir(),
TaskTracker.getPrivateDistributedCacheDir(userName));
// Set some config values
localJobConf.set(JobConf.MAPRED_LOCAL_DIR_PROPERTY,