|
@@ -119,6 +119,7 @@ import org.apache.hadoop.security.UserGroupInformation;
|
|
|
import org.apache.hadoop.security.authorize.ProxyUsers;
|
|
|
import org.apache.hadoop.test.GenericTestUtils;
|
|
|
import org.apache.hadoop.util.ExitUtil;
|
|
|
+import org.apache.hadoop.util.ShutdownHookManager;
|
|
|
import org.apache.hadoop.util.StringUtils;
|
|
|
import org.apache.hadoop.util.ToolRunner;
|
|
|
|
|
@@ -1759,6 +1760,7 @@ public class MiniDFSCluster {
|
|
|
nameNode = null;
|
|
|
}
|
|
|
}
|
|
|
+ ShutdownHookManager.get().clearShutdownHooks();
|
|
|
if (base_dir != null) {
|
|
|
if (deleteDfsDir) {
|
|
|
base_dir.delete();
|