Revert "HADOOP-8143. Change distcp to have -pb on by default."
This reverts commit dd65eea74b
.
Change-Id: I74180cf59d5bbad8c9f66cb331535addcbea863e
This commit is contained in:
parent
7cef7109de
commit
7f2cf334a8
|
@ -197,9 +197,6 @@ public class OptionsParser {
|
||||||
if (command.hasOption(DistCpOptionSwitch.PRESERVE_STATUS.getSwitch())) {
|
if (command.hasOption(DistCpOptionSwitch.PRESERVE_STATUS.getSwitch())) {
|
||||||
builder.preserve(
|
builder.preserve(
|
||||||
getVal(command, DistCpOptionSwitch.PRESERVE_STATUS.getSwitch()));
|
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())) {
|
if (command.hasOption(DistCpOptionSwitch.FILE_LIMIT.getSwitch())) {
|
||||||
|
|
|
@ -415,7 +415,7 @@ public class TestOptionsParser {
|
||||||
"-f",
|
"-f",
|
||||||
"hdfs://localhost:8020/source/first",
|
"hdfs://localhost:8020/source/first",
|
||||||
"hdfs://localhost:8020/target/"});
|
"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.REPLICATION));
|
||||||
Assert.assertFalse(options.shouldPreserve(FileAttribute.PERMISSION));
|
Assert.assertFalse(options.shouldPreserve(FileAttribute.PERMISSION));
|
||||||
Assert.assertFalse(options.shouldPreserve(FileAttribute.USER));
|
Assert.assertFalse(options.shouldPreserve(FileAttribute.USER));
|
||||||
|
|
Loading…
Reference in New Issue