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

Jim Donofrio commented on MAPREDUCE-4639:
-----------------------------------------

Ok I have a couple of questions:

1. Only the mapred FIF has recursive support, mapreduce FIF does not so I can 
add recursive support to FIF and CFIF would get it for free from listStatus. I 
can do this but this sounds like a new JIRA?

2. mapreduce FIF is subject to this same bug with directories, only mapred FIF 
checks if terminal paths are directories.

2. What do you think about checking for directories as terminal paths in 
listStatus instead of having FIF do the check in getSplits? This is cleaner but 
I guess this could break compatibility for custom IF's that extend FIF and use 
listStatus but have their own getSplits. Although I dont know why a custom FIF 
would want a directory.
                
> CombineFileInputFormat#getSplits should throw IOException when input paths 
> contain a directory
> ----------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4639
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4639
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: client
>            Reporter: Jim Donofrio
>            Priority: Minor
>         Attachments: MAPREDUCE-4639.patch
>
>
> FileInputFormat#getSplits throws an IOException when the input paths contain 
> a directory. CombineFileInputFormat should do the same, otherwise the jo will 
> not fail until the record reader is initialized when FileSystem#open will say 
> that the directory does not exist.

--
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