Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.0.0-alpha
-
Reviewed
Description
Currently, if you configure the NameNode to run with just one dfs.namenode.name.dir directory, it prints:
12/07/08 20:00:22 WARN namenode.FSNamesystem: Only one dfs.namenode.name.dir directory configured , beware data loss!
We can improve this in a few ways as it is slightly ambiguous:
- Fix punctuation spacing, there's always a space after a punctuation mark but never before one.
- Perhaps the message is better printed with a reason of why it may cause a scare of data loss. For instance, we can print "Detected a single storage directory in dfs.namenode.name.dir configuration. Beware of dataloss due to lack of redundant storage directories" or so.