Arpit Agarwal created HADOOP-9398:
-------------------------------------

             Summary: Fix TestDFSShell failures on Windows
                 Key: HADOOP-9398
                 URL: https://issues.apache.org/jira/browse/HADOOP-9398
             Project: Hadoop Common
          Issue Type: Bug
          Components: tools
         Environment: Windows
            Reporter: Arpit Agarwal


List of failed tests with exceptions. Filing under Hadoop since some of the 
fixes will need to be in Hadoop common.
{code}
testFilePermissions(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 284 sec 
 <<< FAILURE!
org.junit.ComparisonFailure: expected:<rwxr-xr-[t]> but was:<rwxr-xr-[x]>
        at org.junit.Assert.assertEquals(Assert.java:123)
        at org.junit.Assert.assertEquals(Assert.java:145)
        at 
org.apache.hadoop.hdfs.TestDFSShell.confirmPermissionChange(TestDFSShell.java:934)
        at org.apache.hadoop.hdfs.TestDFSShell.testChmod(TestDFSShell.java:901)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testFilePermissions(TestDFSShell.java:955)

testCopyCommandsWithForceOption(org.apache.hadoop.hdfs.TestDFSShell)  Time 
elapsed: 765 sec  <<< ERROR!
java.lang.IllegalArgumentException: Pathname 
/C:/hdp2/hadoop-hdfs-project/hadoop-hdfs/target/test/data/ForceTestDir from 
C:/hdp2/hadoop-hdfs-project/hadoop-hdfs/target/test/data/ForceTestDir is not a 
valid DFS filename.
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:171)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:350)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testCopyCommandsWithForceOption(TestDFSShell.java:1654)

testServerConfigRespected(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 
14 sec  <<< ERROR!
java.io.IOException: Could not fully delete 
C:\hdp2\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
        at 
org.apache.hadoop.hdfs.TestDFSShell.deleteFileUsingTrash(TestDFSShell.java:1673)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testServerConfigRespected(TestDFSShell.java:1725)

testServerConfigRespectedWithClient(org.apache.hadoop.hdfs.TestDFSShell)  Time 
elapsed: 11 sec  <<< ERROR!
java.io.IOException: Could not fully delete 
C:\hdp2\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
        at 
org.apache.hadoop.hdfs.TestDFSShell.deleteFileUsingTrash(TestDFSShell.java:1673)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testServerConfigRespectedWithClient(TestDFSShell.java:1734)

testClientConfigRespected(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 
11 sec  <<< ERROR!
java.io.IOException: Could not fully delete 
C:\hdp2\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
        at 
org.apache.hadoop.hdfs.TestDFSShell.deleteFileUsingTrash(TestDFSShell.java:1673)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testClientConfigRespected(TestDFSShell.java:1743)

testNoTrashConfig(org.apache.hadoop.hdfs.TestDFSShell)  Time elapsed: 12 sec  
<<< ERROR!
java.io.IOException: Could not fully delete 
C:\hdp2\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644)
        at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
        at 
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
        at 
org.apache.hadoop.hdfs.TestDFSShell.deleteFileUsingTrash(TestDFSShell.java:1673)
        at 
org.apache.hadoop.hdfs.TestDFSShell.testNoTrashConfig(TestDFSShell.java:1751){code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to