Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16294

Enable access to context by DistCp subclasses

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.1
    • Component/s: tools/distcp
    • Labels:
      None

      Description

      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,

        protected DistCpContext getContext() {
          return context;
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                noslowerdna Andrew Olson
                Reporter:
                noslowerdna Andrew Olson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: