Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11795 Fix Hadoop unit test failures on Windows
  3. HADOOP-11796

Skip TestShellBasedIdMapping.testStaticMapUpdate on Windows

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The test should be skipped on Windows.

      Stacktrace
      
      java.util.NoSuchElementException: null
      	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:809)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:847)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:845)
      	at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:314)
      	at com.google.common.collect.AbstractBiMap$EntrySet$1.next(AbstractBiMap.java:306)
      	at org.apache.hadoop.security.TestShellBasedIdMapping.testStaticMapUpdate(TestShellBasedIdMapping.java:151)
      Standard Output
      
      2015-03-30 00:44:30,267 INFO  security.ShellBasedIdMapping (ShellBasedIdMapping.java:<init>(113)) - User configured user account update time is less than 1 minute. Use 1 minute instead.
      2015-03-30 00:44:30,274 INFO  security.ShellBasedIdMapping (ShellBasedIdMapping.java:updateStaticMapping(322)) - Not doing static UID/GID mapping because 'D:\tmp\hadoop-dal\nfs-6561166579146979876.map' does not exist.
      2015-03-30 00:44:30,274 ERROR security.ShellBasedIdMapping (ShellBasedIdMapping.java:checkSupportedPlatform(278)) - Platform is not supported:Windows Server 2008 R2. Can't update user map and group map and 'nobody' will be used for any user and group.
      2015-03-30 00:44:30,275 INFO  security.ShellBasedIdMapping (ShellBasedIdMapping.java:<init>(113)) - User configured user account update time is less than 1 minute. Use 1 minute instead.
      2015-03-30 00:44:30,275 INFO  security.ShellBasedIdMapping (ShellBasedIdMapping.java:updateStaticMapping(322)) - Not doing static UID/GID mapping because 'D:\tmp\hadoop-dal\nfs-6561166579146979876.map' does not exist.
      2015-03-30 00:44:30,275 ERROR security.ShellBasedIdMapping (ShellBasedIdMapping.java:checkSupportedPlatform(278)) - Platform is not supported:Windows Server 2008 R2. Can't update user map and group map and 'nobody' will be used for any user and group.
      

        Attachments

        1. HADOOP-11796.00.patch
          0.8 kB
          Xiaoyu Yao
        2. HADOOP-11796.01.patch
          0.8 kB
          Xiaoyu Yao

          Activity

            People

            • Assignee:
              xyao Xiaoyu Yao
              Reporter:
              xyao Xiaoyu Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: