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

Robert Joseph Evans commented on MAPREDUCE-4202:
------------------------------------------------

I was debugging this too and the reason that the test passed previously was 
because it was trying to instantiate a DefaultFileSystem, which with not config 
was file:// which there was no fs.file.impl.class for.

{noformat}
java.io.IOException: No FileSystem for scheme: file
        at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2085)
        at org.apache.hadoop.fs.FileSystem.access$0(FileSystem.java:2081)
        at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2122)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2104)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:284)
        at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:255)
        at 
org.apache.hadoop.mapred.LocalJobRunner.<init>(LocalJobRunner.java:605)
        at 
org.apache.hadoop.mapred.LocalJobRunner.<init>(LocalJobRunner.java:600)
        at 
org.apache.hadoop.mapred.LocalClientProtocolProvider.create(LocalClientProtocolProvider.java:43)
        at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:98)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:85)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:78)
        at 
org.apache.hadoop.mapreduce.TestYarnClientProtocolProvider.testClusterWithYarnClientProtocolProvider(TestYarnClientProtocolProvider.java:56)
{noformat}

Also org.apache.hadoop.conf.TestNoDefaultsJobConf is more or less trying to 
test the exact opposite of TestYarnClientProtocolProvider.  For backwards 
compatibility I would prefer to see TestYarnClientProtocolProvider not explode 
if no configs are set, but just validate that it got a LocalClientProvider.
                
> TestYarnClientProtocolProvider is broken
> ----------------------------------------
>
>                 Key: MAPREDUCE-4202
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4202
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.24.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: MAPREDUCE-4202.patch
>
>
> The test fails because a cluster is unexpectedly created with an empty conf.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to