|
@@ -20,6 +20,7 @@ package org.apache.hadoop.fs;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
import java.text.DecimalFormat;
|
|
|
+import java.text.NumberFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
@@ -45,7 +46,12 @@ public class FsShell extends Configured implements Tool {
|
|
|
}
|
|
|
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("#.##");
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
*/
|