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

Hudson commented on HADOOP-16294:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16561 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/16561/])
HADOOP-16294: Enable access to input options by DistCp subclasses. (stevel: rev 
c15b3bca86a0f973ccdddd020f3ff2d5767ff1bd)
* (edit) 
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java


> Enable access to context by DistCp subclasses
> ---------------------------------------------
>
>                 Key: HADOOP-16294
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16294
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: tools/distcp
>            Reporter: Andrew Olson
>            Assignee: Andrew Olson
>            Priority: Trivial
>             Fix For: 3.2.1
>
>
> In the DistCp class, the context is private with no getter method allowing 
> retrieval by subclasses. So a subclass would need to save its own copy of the 
> inputOptions supplied to its constructor and reconstruct the context if it 
> wishes to override the createInputFileListing method with logic similar to 
> the original implementation, i.e. calling CopyListing#buildListing with a 
> path and context.
> I propose adding to DistCp this method,
> {noformat}
>   protected DistCpContext getContext() {
>     return context;
>   }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to