[ 
https://issues.apache.org/jira/browse/HADOOP-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doug Cutting updated HADOOP-3157:
---------------------------------

    Attachment: HADOOP-3157.patch

This fixes the test for me on Windows.  There were two problems: (1) the result 
of File#toString() was passed as a URI.  This doesn't work on Windows.  Instead 
one must use File#toURI().toString(); and (2) DistributedCache#makeRelative() 
created a cache path using the colon-containing windows path, which doesn't 
work on Windows, where colons are only permitted in the device.  So we remove 
such colons from cache paths.  We could do this only on Windows, but it 
shouldn't hurt to do everywhere.  I also re-wrote that method, since it had 
some strange hdfs-specific stuff.

> TestMiniMRLocalFS fails in trunk on Windows
> -------------------------------------------
>
>                 Key: HADOOP-3157
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3157
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.17.0
>            Reporter: lohit vijayarenu
>            Assignee: lohit vijayarenu
>            Priority: Blocker
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-3157-1.patch, HADOOP-3157-2.patch, 
> HADOOP-3157-3.patch, HADOOP-3157.patch
>
>
> TestMiniMRLocalFS fails with this stacktrace on Windows
> Testcase: testWithLocal took 299.637 sec
>   Caused an ERROR
> No FileSystem for scheme: C
> java.io.IOException: No FileSystem for scheme: C
>   at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1278)
>   at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:53)
>   at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1292)
>   at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:191)
>   at 
> org.apache.hadoop.filecache.DistributedCache.getTimestamp(DistributedCache.java:414)
>   at 
> org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.java:605)
>   at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:700)
>   at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:973)
>   at org.apache.hadoop.mapred.MRCaching.launchMRCache(MRCaching.java:196)
>   at 
> org.apache.hadoop.mapred.TestMiniMRLocalFS.testWithLocal(TestMiniMRLocalFS.java:56)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to