HDFS-3612. Single namenode image directory config warning can be improved. Contributed by Andy Isaacson. (harsh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1361059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bfa51a33d0
commit
d9911e923d
|
@ -316,6 +316,9 @@ Branch-2 ( Unreleased changes )
|
||||||
HDFS-3306. fuse_dfs: don't lock release operations.
|
HDFS-3306. fuse_dfs: don't lock release operations.
|
||||||
(Colin Patrick McCabe via eli)
|
(Colin Patrick McCabe via eli)
|
||||||
|
|
||||||
|
HDFS-3612. Single namenode image directory config warning can
|
||||||
|
be improved. (Andy Isaacson via harsh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-2982. Startup performance suffers when there are many edit log
|
HDFS-2982. Startup performance suffers when there are many edit log
|
||||||
|
|
|
@ -393,12 +393,14 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
if (namespaceDirs.size() == 1) {
|
if (namespaceDirs.size() == 1) {
|
||||||
LOG.warn("Only one " + DFS_NAMENODE_NAME_DIR_KEY
|
LOG.warn("Only one image storage directory ("
|
||||||
+ " directory configured , beware data loss!");
|
+ DFS_NAMENODE_NAME_DIR_KEY + ") configured. Beware of dataloss"
|
||||||
|
+ " due to lack of redundant storage directories!");
|
||||||
}
|
}
|
||||||
if (namespaceEditsDirs.size() == 1) {
|
if (namespaceEditsDirs.size() == 1) {
|
||||||
LOG.warn("Only one " + DFS_NAMENODE_EDITS_DIR_KEY
|
LOG.warn("Only one namespace edits storage directory ("
|
||||||
+ " directory configured , beware data loss!");
|
+ DFS_NAMENODE_EDITS_DIR_KEY + ") configured. Beware of dataloss"
|
||||||
|
+ " due to lack of redundant storage directories!");
|
||||||
}
|
}
|
||||||
|
|
||||||
FSImage fsImage = new FSImage(conf, namespaceDirs, namespaceEditsDirs);
|
FSImage fsImage = new FSImage(conf, namespaceDirs, namespaceEditsDirs);
|
||||||
|
|
Loading…
Reference in New Issue