Revert "HADOOP-8143. Change distcp to have -pb on by default."

This reverts commit dd65eea74b.

Change-Id: I74180cf59d5bbad8c9f66cb331535addcbea863e
This commit is contained in:
Steve Loughran 2020-05-14 16:06:24 +01:00
parent 017d24e970
commit 4486220bb2
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
2 changed files with 1 additions and 4 deletions

View File

@ -197,9 +197,6 @@ public static DistCpOptions parse(String[] args)
if (command.hasOption(DistCpOptionSwitch.PRESERVE_STATUS.getSwitch())) {
builder.preserve(
getVal(command, DistCpOptionSwitch.PRESERVE_STATUS.getSwitch()));
} else {
// No "preserve" settings specified. Preserve block-size.
builder.preserve(DistCpOptions.FileAttribute.BLOCKSIZE);
}
if (command.hasOption(DistCpOptionSwitch.FILE_LIMIT.getSwitch())) {

View File

@ -415,7 +415,7 @@ public void testPreserve() {
"-f",
"hdfs://localhost:8020/source/first",
"hdfs://localhost:8020/target/"});
Assert.assertTrue(options.shouldPreserve(FileAttribute.BLOCKSIZE));
Assert.assertFalse(options.shouldPreserve(FileAttribute.BLOCKSIZE));
Assert.assertFalse(options.shouldPreserve(FileAttribute.REPLICATION));
Assert.assertFalse(options.shouldPreserve(FileAttribute.PERMISSION));
Assert.assertFalse(options.shouldPreserve(FileAttribute.USER));