Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4698

TestJobHistoryConfig throws Exception in testJobHistoryLogging

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Optionally call initialize/initializeFileSystem in JobTracker::startTracker() to allow for proper initialization when offerService is not being called.

      Description

      TestJobHistoryConfig cannot find the LOG_DIR and throws

      Can not create a Path from a null string
      java.lang.IllegalArgumentException: Can not create a Path from a null string
          at org.apache.hadoop.fs.Path.checkPathArg(Path.java:78)
          at org.apache.hadoop.fs.Path.<init>(Path.java:90)
          at org.apache.hadoop.mapred.JobHistory$JobInfo.getJobHistoryFileName(JobHistory.java:1337)
          at org.apache.hadoop.mapred.JobHistory$JobInfo.logSubmitted(JobHistory.java:1660)
          at org.apache.hadoop.mapred.JobHistory$JobInfo.logSubmitted(JobHistory.java:1641)
          at org.apache.hadoop.mapred.TestJobHistoryConfig.testJobHistoryLogging(TestJobHistoryConfig.java:123)
      

        Activity

        Hide
        Gopal V added a comment -

        A new JobTracker.startTracker which initializes the tracker to match old behaviour.

        Show
        Gopal V added a comment - A new JobTracker.startTracker which initializes the tracker to match old behaviour.
        Hide
        Gopal V added a comment -

        This patch is due to the modification of the constructor behaviour in the following changeset

        https://github.com/apache/hadoop-common/commit/31476670aa3de8b553aa6345cf56c67968f9dabc

        Show
        Gopal V added a comment - This patch is due to the modification of the constructor behaviour in the following changeset https://github.com/apache/hadoop-common/commit/31476670aa3de8b553aa6345cf56c67968f9dabc
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12547442/mapreduce-4698.patch
        against trunk revision .

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2901//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12547442/mapreduce-4698.patch against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2901//console This message is automatically generated.
        Hide
        Siddharth Seth added a comment -

        +1. lgtm. Will commit this shortly.

        Show
        Siddharth Seth added a comment - +1. lgtm. Will commit this shortly.
        Hide
        Siddharth Seth added a comment -

        Committed to branch-1 and branch-1.1. Thanks Gopal.

        Show
        Siddharth Seth added a comment - Committed to branch-1 and branch-1.1. Thanks Gopal.
        Hide
        Matt Foley added a comment -

        BTW also fixes MAPREDUCE-4696.

        Show
        Matt Foley added a comment - BTW also fixes MAPREDUCE-4696 .
        Hide
        Matt Foley added a comment -

        Closed upon release of Hadoop-1.1.0.

        Show
        Matt Foley added a comment - Closed upon release of Hadoop-1.1.0.

          People

          • Assignee:
            Gopal V
            Reporter:
            Gopal V
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development