HADOOP-6875. [Herriot] Cleanup of temp. configurations is needed upon restart of a cluster. Contributed by Vinay Thota.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@967220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d6ef66abb7
commit
f22e332ddd
@ -1732,6 +1732,9 @@ Release 0.21.0 - Unreleased
|
||||
HADOOP-6790. Instrumented (Herriot) build uses too wide mask to include
|
||||
aspect files. (Konstantin Boudnik)
|
||||
|
||||
HADOOP-6875. [Herriot] Cleanup of temp. configurations is needed upon
|
||||
restart of a cluster (Vinay Thota via cos)
|
||||
|
||||
Release 0.20.3 - Unreleased
|
||||
|
||||
NEW FEATURES
|
||||
|
@ -389,6 +389,17 @@ public void restart() throws
|
||||
waitForClusterToStop();
|
||||
start();
|
||||
waitForClusterToStart();
|
||||
cleanupNewConf(newConfDir);
|
||||
}
|
||||
|
||||
/**
|
||||
* It uses to delete the new configuration folder.
|
||||
* @param path - configuration directory path.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
public void cleanupNewConf(String path) throws IOException {
|
||||
File file = new File(path);
|
||||
file.delete();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user