Arpit Agarwal created HDFS-7514:
-----------------------------------

             Summary: TestTextCommand fails on Windows
                 Key: HDFS-7514
                 URL: https://issues.apache.org/jira/browse/HDFS-7514
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
    Affects Versions: 2.6.0
            Reporter: Arpit Agarwal
            Assignee: Arpit Agarwal


TestTextCommand fails on Windows

*Error Message*
{code}
Pathname 
/D:/w/hbk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/testText/weather.avro
 from 
D:/w/hbk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/testText/weather.avro 
is not a valid DFS filename.
{code}

*Stacktrace*
{code}
java.lang.IllegalArgumentException: Pathname 
/D:/w/hbk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/testText/weather.avro
 from 
D:/w/hbk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/testText/weather.avro 
is not a valid DFS filename.
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:196)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.access$000(DistributedFileSystem.java:105)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:397)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem$6.doCall(DistributedFileSystem.java:393)
        at 
org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:393)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:337)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:908)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:889)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:786)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:775)
        at 
org.apache.hadoop.fs.shell.TestTextCommand.createAvroFile(TestTextCommand.java:113)
        at 
org.apache.hadoop.fs.shell.TestTextCommand.testDisplayForAvroFiles(TestTextCommand.java:76)
{code}



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

Reply via email to