diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 14e6fda7099..4eef96495bd 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1120,6 +1120,9 @@ Release 2.7.2 - UNRELEASED HADOOP-12061. Incorrect command in single cluster setup document. (Kengo Seki via aajisaka) + HADOOP-12359. hadoop fs -getmerge doc is wrong. + (Jagadesh Kiran N via aajisaka) + Release 2.7.1 - 2015-07-06 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md index fb89ca11042..d6d00e4f4d3 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md @@ -368,9 +368,18 @@ Returns 0 on success and non-zero on error. getmerge -------- -Usage: `hadoop fs -getmerge [addnl]` +Usage: `hadoop fs -getmerge [-nl] ` -Takes a source directory and a destination file as input and concatenates files in src into the destination local file. Optionally addnl can be set to enable adding a newline character at the end of each file. +Takes a source directory and a destination file as input and concatenates files in src into the destination local file. Optionally -nl can be set to enable adding a newline character (LF) at the end of each file. + +Examples: + +* `hadoop fs -getmerge -nl /src /opt/output.txt` +* `hadoop fs -getmerge -nl /src/file1.txt /src/file2.txt /output.txt` + +Exit Code: + +Returns 0 on success and non-zero on error. help ----