MAPREDUCE-5359. JobHistory should not use File.separator to match timestamp in path. Contributed by Chuan Liu.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1499153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c9e837f1b
commit
06ea8ffcf2
@ -603,6 +603,9 @@ Release 2.1.0-beta - 2013-07-02
|
|||||||
MAPREDUCE-5355. MiniMRYarnCluster with localFs does not work on Windows.
|
MAPREDUCE-5355. MiniMRYarnCluster with localFs does not work on Windows.
|
||||||
(Chuan Liu via cnauroth)
|
(Chuan Liu via cnauroth)
|
||||||
|
|
||||||
|
MAPREDUCE-5359. JobHistory should not use File.separator to match timestamp
|
||||||
|
in path. (Chuan Liu via cnauroth)
|
||||||
|
|
||||||
MAPREDUCE-5291. Change MR App to use updated property names in
|
MAPREDUCE-5291. Change MR App to use updated property names in
|
||||||
container-log4j.properties. (Zhijie Shen via sseth)
|
container-log4j.properties. (Zhijie Shen via sseth)
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ public class JobHistoryUtils {
|
|||||||
|
|
||||||
public static final int SERIAL_NUMBER_DIRECTORY_DIGITS = 6;
|
public static final int SERIAL_NUMBER_DIRECTORY_DIGITS = 6;
|
||||||
|
|
||||||
public static final String TIMESTAMP_DIR_REGEX = "\\d{4}" + "\\" + File.separator + "\\d{2}" + "\\" + File.separator + "\\d{2}";
|
public static final String TIMESTAMP_DIR_REGEX = "\\d{4}" + "\\" + Path.SEPARATOR + "\\d{2}" + "\\" + Path.SEPARATOR + "\\d{2}";
|
||||||
public static final Pattern TIMESTAMP_DIR_PATTERN = Pattern.compile(TIMESTAMP_DIR_REGEX);
|
public static final Pattern TIMESTAMP_DIR_PATTERN = Pattern.compile(TIMESTAMP_DIR_REGEX);
|
||||||
private static final String TIMESTAMP_DIR_FORMAT = "%04d" + File.separator + "%02d" + File.separator + "%02d";
|
private static final String TIMESTAMP_DIR_FORMAT = "%04d" + File.separator + "%02d" + File.separator + "%02d";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user