Xiaoyu Yao created HDFS-8047:
--------------------------------

             Summary: Fix TestShellBasedIdMapping.testStaticMapUpdate failure 
on Windows
                 Key: HDFS-8047
                 URL: https://issues.apache.org/jira/browse/HDFS-8047
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Xiaoyu Yao
            Assignee: Xiaoyu Yao
            Priority: Minor


The test should be skipped on Windows.

{code}
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.
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to