From 18050bc58393cf1c7af225466166f3063d211fbf Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Mon, 9 Mar 2020 15:37:08 +0100 Subject: [PATCH] HADOOP-16909 Typo in distcp counters. Contributed by Sebastian Nagel. --- .../java/org/apache/hadoop/io/file/tfile/TestTFile.java | 8 ++++---- .../hadoop/tools/mapred/CopyMapper_Counter.properties | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java index 80aeef2d63..ea20fbeda3 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java @@ -109,7 +109,7 @@ private int readAndCheckbytes(Scanner scanner, int start, int n) byte[] val = readValue(scanner); String keyStr = String.format(localFormatter, i); String valStr = value + keyStr; - assertTrue("btyes for keys do not match " + keyStr + " " + assertTrue("bytes for keys do not match " + keyStr + " " + new String(key), Arrays.equals(keyStr.getBytes(), key)); assertTrue("bytes for vals do not match " + valStr + " " + new String(val), Arrays.equals( @@ -117,7 +117,7 @@ private int readAndCheckbytes(Scanner scanner, int start, int n) assertTrue(scanner.advance()); key = readKey(scanner); val = readValue(scanner); - assertTrue("btyes for keys do not match", Arrays.equals( + assertTrue("bytes for keys do not match", Arrays.equals( keyStr.getBytes(), key)); assertTrue("bytes for vals do not match", Arrays.equals( valStr.getBytes(), val)); @@ -146,11 +146,11 @@ private int readLargeRecords(Scanner scanner, int start, int n) for (int i = start; i < (start + n); i++) { byte[] key = readKey(scanner); String keyStr = String.format(localFormatter, i); - assertTrue("btyes for keys do not match", Arrays.equals( + assertTrue("bytes for keys do not match", Arrays.equals( keyStr.getBytes(), key)); scanner.advance(); key = readKey(scanner); - assertTrue("btyes for keys do not match", Arrays.equals( + assertTrue("bytes for keys do not match", Arrays.equals( keyStr.getBytes(), key)); scanner.advance(); } diff --git a/hadoop-tools/hadoop-distcp/src/main/resources/org/apache/hadoop/tools/mapred/CopyMapper_Counter.properties b/hadoop-tools/hadoop-distcp/src/main/resources/org/apache/hadoop/tools/mapred/CopyMapper_Counter.properties index 53727ee47c..dfdc78ff78 100644 --- a/hadoop-tools/hadoop-distcp/src/main/resources/org/apache/hadoop/tools/mapred/CopyMapper_Counter.properties +++ b/hadoop-tools/hadoop-distcp/src/main/resources/org/apache/hadoop/tools/mapred/CopyMapper_Counter.properties @@ -21,4 +21,4 @@ BYTESCOPIED.name= Bytes Copied BYTESEXPECTED.name= Bytes Expected BYTESFAILED.name= Bytes Failed BYTESSKIPPED.name= Bytes Skipped -BANDWIDTH_IN_BYTES.name= Bandwidth in Btyes \ No newline at end of file +BANDWIDTH_IN_BYTES.name= Bandwidth in Bytes \ No newline at end of file