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

TestMRCLI might fail on Ubuntu with default /etc/hosts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.21.1
    • Fix Version/s: 0.21.1
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Depending on the order of entries in /etc/hosts, TestCLI can fail. This is because it sets fs.default.name to "localhost", and then the bound IPC socket on the NN side reports its hostname as "foobar-host" if the entry for 127.0.0.1 lists "foobar-host" before "localhost". This seems to be the default in some versions of Ubuntu.

      1. MAPREDUCE-2223.patch
        0.7 kB
        Konstantin Boudnik

        Issue Links

          Activity

          Hide
          Konstantin Boudnik added a comment -

          This is counterpart of HDFS-1406. However the fix is a way smaller.

          Show
          Konstantin Boudnik added a comment - This is counterpart of HDFS-1406 . However the fix is a way smaller.
          Hide
          Tom White added a comment -

          +1

          Show
          Tom White added a comment - +1
          Hide
          Konstantin Boudnik added a comment -

          Considering that the change is very isolated and doesn't touch any source code I have ran affected test only

              [junit] Running org.apache.hadoop.cli.TestMRCLI
              [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 66.757 sec
          

          and am going to commit it unless somebody has objection.

          Show
          Konstantin Boudnik added a comment - Considering that the change is very isolated and doesn't touch any source code I have ran affected test only [junit] Running org.apache.hadoop.cli.TestMRCLI [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 66.757 sec and am going to commit it unless somebody has objection.
          Hide
          Konstantin Boudnik added a comment -

          I have also ran test-patch locally:

          -1 overall.  
          
              +1 @author.  The patch does not contain any @author tags.
          
              +1 tests included.  The patch appears to include 3 new or modified tests.
          
              +1 javadoc.  The javadoc tool did not generate any warning messages.
          
              +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
          
              -1 findbugs.  The patch appears to introduce 13 new Findbugs warnings.
          
              -1 release audit.  The applied patch generated 2 release audit warnings (more than the trunk's current 1 warnings).
          
              +1 system test framework.  The patch passed system test framework compile.
          

          2 release audit warnings are because of missed licenses smoke-tests and robots.txt files (see HDFS-1511 for correct fix of the problem). FindBugs are legit but unrelated to the patch. Mapreduce trunk needs to be fixed wrt static analysis warnings.

          Show
          Konstantin Boudnik added a comment - I have also ran test-patch locally: -1 overall. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 13 new Findbugs warnings. -1 release audit. The applied patch generated 2 release audit warnings (more than the trunk's current 1 warnings). +1 system test framework. The patch passed system test framework compile. 2 release audit warnings are because of missed licenses smoke-tests and robots.txt files (see HDFS-1511 for correct fix of the problem). FindBugs are legit but unrelated to the patch. Mapreduce trunk needs to be fixed wrt static analysis warnings.
          Hide
          Konstantin Boudnik added a comment -

          I have just committed this.

          Show
          Konstantin Boudnik added a comment - I have just committed this.
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk-Commit #563 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/563/)

          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #563 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/563/ )
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-22-branch #33 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-22-branch/33/)

          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-22-branch #33 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-22-branch/33/ )
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk #643 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-trunk/643/)

          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #643 (See https://hudson.apache.org/hudson/job/Hadoop-Mapreduce-trunk/643/ )

            People

            • Assignee:
              Konstantin Boudnik
              Reporter:
              Konstantin Boudnik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development