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:
parent
fbd2220167
commit
375900049c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user