You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andrew Olson (JIRA)" <ji...@apache.org> on 2019/05/06 13:40:00 UTC

[jira] [Commented] (HADOOP-16294) Enable access to input options by DistCp subclasses

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

Andrew Olson commented on HADOOP-16294:
---------------------------------------

Opened a pull request for this,
https://github.com/apache/hadoop/pull/796

> Enable access to input options 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
>
> In the DistCp class, the DistCpOptions are 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, if it wishes to override the createInputFileListing method with logic similar to the original implementation, i.e. calling CopyListing#buildListing with a path and input options.
> I propose adding to DistCp this method,
> {noformat}
>   protected DistCpOptions getInputOptions() {
>     return inputOptions;
>   }
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org