Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2456

German locale makes NameNode web interface crash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.15.2
    • Fix Version/s: 0.15.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu Linux 7.10

      Description

      When starting the NameNode with a German locale (or some other that uses "," as the decimal separator), the web interface (dfshealth.jsp) crashes with a NumberFormatException.

      To reproduce:

      $ LC_ALL=de_DE bin/start-dfs.sh

      Then copy some data to the store so that the percentage of used space is above 0%. Load the web interface in your browser and you'll get a HTTP 500 error message.

      The problem is that FsShell gives you a localized number (eg. "0,7") which can't be parsed by Double.parseDouble().

        Attachments

        1. number-format-fix.patch
          1.0 kB
          Matthias Friedrich
        2. namenode-log.txt
          2 kB
          Matthias Friedrich

          Activity

            People

            • Assignee:
              mafr Matthias Friedrich
              Reporter:
              mafr Matthias Friedrich
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: