From 375900049cc67c956c163d8ff607682972102313 Mon Sep 17 00:00:00 2001 From: jianghuazhu <740087514@qq.com> Date: Wed, 11 Nov 2020 05:02:29 +0800 Subject: [PATCH] HDFS-15608.Reset the DistCp#CLEANUP variable definition. (#2351). Contributed by JiangHua Zhu. Co-authored-by: zhujianghua --- .../src/main/java/org/apache/hadoop/tools/DistCp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 7ff91317e7..ca64cab509 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 @@ -445,9 +445,9 @@ public static void main(String argv[]) { int exitCode; try { DistCp distCp = new DistCp(); - Cleanup CLEANUP = new Cleanup(distCp); + Cleanup cleanup = new Cleanup(distCp); - ShutdownHookManager.get().addShutdownHook(CLEANUP, + ShutdownHookManager.get().addShutdownHook(cleanup, SHUTDOWN_HOOK_PRIORITY); exitCode = ToolRunner.run(getDefaultConf(), distCp, argv); }