Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2477

Unit test fails on Windows: TestCopyFiles.testCopyFromLocalToDfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 0.16.0
    • None
    • fs
    • None
    • Windows

    Description

      Unit test failed on Windows: org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToDfs

      Exception:
      org.apache.hadoop.ipc.RemoteException: java.io.IOException: Cannot open filename /destdat/one/eight/3479184736143758567
      at org.apache.hadoop.dfs.NameNode.open(NameNode.java:234)
      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:401)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:892)
      at org.apache.hadoop.ipc.Client.call(Client.java:509)
      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:198)
      at org.apache.hadoop.dfs.$Proxy0.open(Unknown Source)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
      at org.apache.hadoop.dfs.$Proxy0.open(Unknown Source)
      at org.apache.hadoop.dfs.DFSClient$DFSInputStream.openInfo(DFSClient.java:839)
      at org.apache.hadoop.dfs.DFSClient$DFSInputStream.<init>(DFSClient.java:831)
      at org.apache.hadoop.dfs.DFSClient.open(DFSClient.java:263)
      at org.apache.hadoop.dfs.DistributedFileSystem.open(DistributedFileSystem.java:114)
      at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:262)
      at org.apache.hadoop.fs.TestCopyFiles.checkFiles(TestCopyFiles.java:144)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToDfs(TestCopyFiles.java:288)

      Standard Error:
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.lang.IllegalArgumentException: length != 10(unixSymbolicPermission=drwxrwxrwx+)
      at org.apache.hadoop.fs.permission.FsPermission.valueOf(FsPermission.java:160)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:405)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.write(RawLocalFileSystem.java:429)
      at org.apache.hadoop.util.CopyFiles$FilePair.write(CopyFiles.java:133)
      at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:956)
      at org.apache.hadoop.util.CopyFiles.setup(CopyFiles.java:727)
      at org.apache.hadoop.util.CopyFiles.copy(CopyFiles.java:475)
      at org.apache.hadoop.util.CopyFiles.run(CopyFiles.java:550)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToLocal(TestCopyFiles.java:235)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

      Waiting for the Mini HDFS Cluster to start...
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.lang.IllegalArgumentException: length != 10(unixSymbolicPermission=drwxrwxrwx+)
      at org.apache.hadoop.fs.permission.FsPermission.valueOf(FsPermission.java:160)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:405)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.write(RawLocalFileSystem.java:429)
      at org.apache.hadoop.util.CopyFiles$FilePair.write(CopyFiles.java:133)
      at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:956)
      at org.apache.hadoop.util.CopyFiles.setup(CopyFiles.java:727)
      at org.apache.hadoop.util.CopyFiles.copy(CopyFiles.java:475)
      at org.apache.hadoop.util.CopyFiles.run(CopyFiles.java:550)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToDfs(TestCopyFiles.java:283)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

      Waiting for the Mini HDFS Cluster to start...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mukundm Mukund Madhugiri
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: