[ 
https://issues.apache.org/jira/browse/HDFS-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633839#comment-13633839
 ] 

Ivan Mitic commented on HDFS-4705:
----------------------------------

The test fails on Windows because the {{dfs.namenode.name.dir}} resolves to 
"file://I:\svn\tr\hadoop-hdfs-project\hadoop-hdfs\target/test/dfs/name" in the 
test what fails the namenode storage dir URI conversion (see below exception). 
{{dfs.namenode.name.dir}} default value is based on 
"file://$hadoop.tmp.dir/dfs/name" and this expands in the above invalid path. 

{code}
Error while processing URI: 
file://I:\svn\tr\hadoop-hdfs-project\hadoop-hdfs\target/test/dfs/name
java.io.IOException: The filename, directory name, or volume label syntax is 
incorrect
        at java.io.WinNTFileSystem.canonicalize0(Native Method)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
        at java.io.File.getCanonicalPath(File.java:559)
        at java.io.File.getCanonicalFile(File.java:583)
        at org.apache.hadoop.hdfs.server.common.Util.fileAsURI(Util.java:73)
        at org.apache.hadoop.hdfs.server.common.Util.stringAsURI(Util.java:58)
        at 
org.apache.hadoop.hdfs.server.common.Util.stringCollectionAsURIs(Util.java:98)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getStorageDirs(FSNamesystem.java:959)
{code}
                
> TestAllowFormat fails on Windows because of invalid dfs.namenode.name.dir
> -------------------------------------------------------------------------
>
>                 Key: HDFS-4705
>                 URL: https://issues.apache.org/jira/browse/HDFS-4705
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Ivan Mitic
>            Assignee: Ivan Mitic
>            Priority: Minor
>
> Test fails on Windows with the below exception:
> {code}
> testFormatShouldBeIgnoredForNonFileBasedDirs(org.apache.hadoop.hdfs.server.namenode.TestAllowFormat)
>   Time elapsed: 49 sec  <<< ERROR!
> java.io.IOException: No image directories available!
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImageInAllDirs(FSImage.java:912)
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImageInAllDirs(FSImage.java:905)
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:151)
>       at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:758)
>       at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:259)
>       at 
> org.apache.hadoop.hdfs.server.namenode.TestAllowFormat.testFormatShouldBeIgnoredForNonFileBasedDirs(TestAllowFormat.java:181)
> {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