diff --git a/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt b/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt index 3559436a07..505eabdbcd 100644 --- a/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt +++ b/hadoop-common-project/hadoop-common/CHANGES-HDFS-EC-7285.txt @@ -64,4 +64,6 @@ (Kai Zheng) HADOOP-12011. Allow to dump verbose information to ease debugging in raw erasure coders - (Kai Zheng) \ No newline at end of file + (Kai Zheng) + + HADOOP-12065. Using more meaningful keys in EC schema. (Kai Zheng) \ No newline at end of file diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java index fdc569ee9a..1e07d3d04f 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/ECSchema.java @@ -25,8 +25,8 @@ * Erasure coding schema to housekeeper relevant information. */ public final class ECSchema { - public static final String NUM_DATA_UNITS_KEY = "k"; - public static final String NUM_PARITY_UNITS_KEY = "m"; + public static final String NUM_DATA_UNITS_KEY = "numDataUnits"; + public static final String NUM_PARITY_UNITS_KEY = "numParityUnits"; public static final String CODEC_NAME_KEY = "codec"; /** diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/TestSchemaLoader.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/TestSchemaLoader.java index 939fa9b861..50d2091889 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/TestSchemaLoader.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/TestSchemaLoader.java @@ -40,13 +40,13 @@ public void testLoadSchema() throws Exception { out.println(""); out.println(""); out.println(" "); - out.println(" 6"); - out.println(" 3"); + out.println(" 6"); + out.println(" 3"); out.println(" RS"); out.println(" "); out.println(" "); - out.println(" 10"); - out.println(" 4"); + out.println(" 10"); + out.println(" 4"); out.println(" RS"); out.println(" "); out.println("");