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

Alejandro Abdelnur commented on MAPREDUCE-5021:
-----------------------------------------------

This is equivalent to how java -classpath supports wildcards, i.e. {{lib/'*'}} 
to easily specify all JARs in a directory. Regarding adding a new method, an 
alternative would be making the existing addFileToClasspath() to detect if the 
provided path is a directory and then do the addition of all JARs under it.
                
> Add an addDirectoryToClassPath method DistributedCache
> ------------------------------------------------------
>
>                 Key: MAPREDUCE-5021
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5021
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: client, distributed-cache
>    Affects Versions: 2.0.3-alpha
>            Reporter: Sandy Ryza
>
> As adding a directory of jars to the class path is a common use for the 
> distributed cache it would be easier on API consumers if they were able to 
> call a method that would add all the the files in a directory for them. 

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