Skip to content

Commit 782ed0c

Browse files
committed
HADOOP-17531.Addendum: DistCp: Reduce memory usage on copying huge directories. (#2820). Contributed by Ayush Saxena.
Signed-off-by: Steve Loughran <[email protected]>
1 parent c4a2868 commit 782ed0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/GenericTestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.lang.management.ThreadInfo;
3131
import java.lang.management.ThreadMXBean;
3232
import java.lang.reflect.InvocationTargetException;
33+
import java.nio.charset.StandardCharsets;
3334
import java.util.ArrayList;
3435
import java.util.Arrays;
3536
import java.util.List;
@@ -70,7 +71,6 @@
7071
import org.mockito.stubbing.Answer;
7172
import org.slf4j.LoggerFactory;
7273

73-
import org.apache.hadoop.thirdparty.com.google.common.base.Charsets;
7474
import org.apache.hadoop.thirdparty.com.google.common.base.Joiner;
7575
import org.apache.hadoop.thirdparty.com.google.common.collect.Sets;
7676

@@ -927,7 +927,7 @@ private static CompletableFuture<Path> put(FileSystem fs,
927927
return submit(EXECUTOR, () -> {
928928
try (DurationInfo ignore =
929929
new DurationInfo(LOG, false, "Creating %s", path)) {
930-
createFile(fs, path, true, text.getBytes(Charsets.UTF_8));
930+
createFile(fs, path, true, text.getBytes(StandardCharsets.UTF_8));
931931
return path;
932932
}
933933
});

0 commit comments

Comments
 (0)