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

Enable access to context by DistCp subclasses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.2.1
    • tools/distcp
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: