Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3612

Single namenode image directory config warning can be improved

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: namenode
    • Labels:
    • Hadoop Flags:
      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:

      1. Fix punctuation spacing, there's always a space after a punctuation mark but never before one.
      2. 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.

        Attachments

        1. hdfs3612-2.txt
          2 kB
          Andy Isaacson
        2. hdfs3612.txt
          1 kB
          Andy Isaacson

          Activity

            People

            • Assignee:
              adi2 Andy Isaacson
              Reporter:
              qwertymaniac Harsh J
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: