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

View File

@ -445,9 +445,9 @@ public static void main(String argv[]) {
int exitCode; int exitCode;
try { try {
DistCp distCp = new DistCp(); 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); SHUTDOWN_HOOK_PRIORITY);
exitCode = ToolRunner.run(getDefaultConf(), distCp, argv); exitCode = ToolRunner.run(getDefaultConf(), distCp, argv);
} }