[prev in list] [next in list] [prev in thread] [next in thread]
List: hadoop-commits
Subject: svn commit: r607325 - in /lucene/hadoop/trunk: CHANGES.txt
From: nigel () apache ! org
Date: 2007-12-28 20:38:59
Message-ID: 20071228203900.087CF1A984E () eris ! apache ! org
[Download RAW message or body]
Author: nigel
Date: Fri Dec 28 12:38:58 2007
New Revision: 607325
URL: http://svn.apache.org/viewvc?rev=607325&view=rev
Log:
HADOOP-2456. Hardcode English locale to prevent NumberFormatException from occurring \
when starting the NameNode with certain locales. Contributed by Matthias Friedrich.
Modified:
lucene/hadoop/trunk/CHANGES.txt
lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FsShell.java
Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=607325&r1=607324&r2=607325&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Dec 28 12:38:58 2007
@@ -345,6 +345,10 @@
for merging, this patch will ensure that only those files whose checksums
have also got created (renamed) are returned. (ddas)
+ HADOOP-2456. Hardcode English locale to prevent NumberFormatException
+ from occurring when starting the NameNode with certain locales.
+ (Matthias Friedrich via nigel)
+
IMPROVEMENTS
HADOOP-2160. Remove project-level, non-user documentation from
Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FsShell.java?rev=607325&r1=607324&r2=607325&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FsShell.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FsShell.java Fri Dec 28 \
12:38:58 2007 @@ -21,6 +21,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.text.DecimalFormat;
+import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.zip.GZIPInputStream;
@@ -53,7 +54,12 @@
}
static final String SETREP_SHORT_USAGE="-setrep [-R] [-w] <rep> <path/file>";
static final String TAIL_USAGE="-tail [-f] <file>";
- private static final DecimalFormat decimalFormat = new DecimalFormat("#.##");
+ private static final DecimalFormat decimalFormat;
+ static {
+ NumberFormat numberFormat = NumberFormat.getNumberInstance(Locale.ENGLISH);
+ decimalFormat = (DecimalFormat) numberFormat;
+ decimalFormat.applyPattern("#.##");
+ }
/**
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic