Skip to content

Commit 18050bc

Browse files
HADOOP-16909 Typo in distcp counters.
Contributed by Sebastian Nagel.
1 parent c6b8a30 commit 18050bc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ private int readAndCheckbytes(Scanner scanner, int start, int n)
109109
byte[] val = readValue(scanner);
110110
String keyStr = String.format(localFormatter, i);
111111
String valStr = value + keyStr;
112-
assertTrue("btyes for keys do not match " + keyStr + " "
112+
assertTrue("bytes for keys do not match " + keyStr + " "
113113
+ new String(key), Arrays.equals(keyStr.getBytes(), key));
114114
assertTrue("bytes for vals do not match " + valStr + " "
115115
+ new String(val), Arrays.equals(
116116
valStr.getBytes(), val));
117117
assertTrue(scanner.advance());
118118
key = readKey(scanner);
119119
val = readValue(scanner);
120-
assertTrue("btyes for keys do not match", Arrays.equals(
120+
assertTrue("bytes for keys do not match", Arrays.equals(
121121
keyStr.getBytes(), key));
122122
assertTrue("bytes for vals do not match", Arrays.equals(
123123
valStr.getBytes(), val));
@@ -146,11 +146,11 @@ private int readLargeRecords(Scanner scanner, int start, int n)
146146
for (int i = start; i < (start + n); i++) {
147147
byte[] key = readKey(scanner);
148148
String keyStr = String.format(localFormatter, i);
149-
assertTrue("btyes for keys do not match", Arrays.equals(
149+
assertTrue("bytes for keys do not match", Arrays.equals(
150150
keyStr.getBytes(), key));
151151
scanner.advance();
152152
key = readKey(scanner);
153-
assertTrue("btyes for keys do not match", Arrays.equals(
153+
assertTrue("bytes for keys do not match", Arrays.equals(
154154
keyStr.getBytes(), key));
155155
scanner.advance();
156156
}

hadoop-tools/hadoop-distcp/src/main/resources/org/apache/hadoop/tools/mapred/CopyMapper_Counter.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ BYTESCOPIED.name= Bytes Copied
2121
BYTESEXPECTED.name= Bytes Expected
2222
BYTESFAILED.name= Bytes Failed
2323
BYTESSKIPPED.name= Bytes Skipped
24-
BANDWIDTH_IN_BYTES.name= Bandwidth in Btyes
24+
BANDWIDTH_IN_BYTES.name= Bandwidth in Bytes

0 commit comments

Comments
 (0)