This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 5560352  HADOOP-16294: Enable access to input options by DistCp 
subclasses.
5560352 is described below

commit 55603529d01dd9180dbbf2e3ad564a1ae3d11f6e
Author: Andrew Olson <andrew.ol...@cerner.com>
AuthorDate: Thu May 16 16:11:12 2019 +0200

    HADOOP-16294: Enable access to input options by DistCp subclasses.
    
    Adding a protected-scope getter for the DistCpOptions, so that a subclass 
does
    not 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.
    
    Author:    Andrew Olson
    (cherry picked from commit c15b3bca86a0f973ccdddd020f3ff2d5767ff1bd)
---
 .../src/main/java/org/apache/hadoop/tools/DistCp.java            | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java 
b/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
index 4f79975..a1a2075 100644
--- 
a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
+++ 
b/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCp.java
@@ -417,6 +417,15 @@ public class DistCp extends Configured implements Tool {
   }
 
   /**
+   * Returns the context.
+   *
+   * @return the context
+   */
+  protected DistCpContext getContext() {
+    return context;
+  }
+
+  /**
    * Main function of the DistCp program. Parses the input arguments (via 
OptionsParser),
    * and invokes the DistCp::run() method, via the ToolRunner.
    * @param argv Command-line arguments sent to DistCp.


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to