HDFS-15608.Reset the DistCp#CLEANUP variable definition. (#2351). Contributed by JiangHua Zhu.

Co-authored-by: zhujianghua <zhujianghua@zhujianghuadeMacBook-Pro.local>
This commit is contained in:
jianghuazhu 2020-11-11 05:02:29 +08:00 committed by GitHub
parent fbd2220167
commit 375900049c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -445,9 +445,9 @@ public class DistCp extends Configured implements Tool {
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);
}