AnsweredAssumed Answered

Job failed

Question asked by kim on Nov 17, 2011
Latest reply on Jan 15, 2012 by Ted Dunning
I have a test programming which submits a job to MapR but the job failed.
Error initializing attempt_201111141410_0011_m_000000_0: Job initialization failed (255)org.apache.hadoop.util.Shell$ExitCodeException: . Output of LinuxTaskController initializeJob: Reading task controller config from /opt/mapr/hadoop/hadoop-0.20.2/conf/taskcontroller.cfg
User foo not found
at org.apache.hadoop.mapred.LinuxTaskController.initializeJob(
at org.apache.hadoop.mapred.TaskTracker$
at Method)
at org.apache.hadoop.mapred.TaskTracker.initializeJob(
at org.apache.hadoop.mapred.TaskTracker.localizeJob(
at org.apache.hadoop.mapred.TaskTracker.startNewTask(
at org.apache.hadoop.mapred.TaskTracker$

I am not sure what "User foo not found" mean. Is there any additional configurations I need to set?
Here is my code,
public void testJobSubmission() throws Throwable {
        File file = TestUtils.newTemporaryFile();
        try {
            SleepJob job = new SleepJob(file);
            JobSubmission submission = job.toJobSubmission();
            submission.setJobTrackerAddress(new InetSocketAddress(MapRClusterConstants.HOSTNAME, 9001));
            JobSubmitter submitter = submission.newJobSubmitter();
            JobID id = submitter.submit();
  "Job ID is " + id);
            int retry = 0;
            for (;;) {
                if (retry > 10)
                    throw new Exception("Too many retries; failed.");
                JobAdapter ja = submitter.monitor(id);
                if (ja == null) {
          "Job state not available; retry = " + retry);
                if (ja.getJobState().isCompleted()) {
                    assertEquals(JobRunState.SUCCEEDED, ja.getJobState());
        } catch (Throwable t) {
        } finally {