Repository: hadoop Updated Branches: refs/heads/branch-1 552bafde0 -> 8151679f8
HDFS-6649. Documentation for setrep is wrong. (aajisaka) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8151679f Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8151679f Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8151679f Branch: refs/heads/branch-1 Commit: 8151679f832124a8131dba1ef652f2899b999489 Parents: 552bafd Author: Akira Ajisaka <aajis...@apache.org> Authored: Wed Mar 25 13:13:10 2015 +0900 Committer: Akira Ajisaka <aajis...@apache.org> Committed: Wed Mar 25 13:13:10 2015 +0900 ---------------------------------------------------------------------- CHANGES.txt | 2 ++ .../documentation/content/xdocs/file_system_shell.xml | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8151679f/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 6abf1f9..57f1cf4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -280,6 +280,8 @@ Release 1.3.0 - unreleased HDFS-7312. Update DistCp v1 to optionally not use tmp location. (Joseph Prosser via yzhangal) + HDFS-6649. Documentation for setrep is wrong. (aajisaka) + Release 1.2.2 - unreleased INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/8151679f/src/docs/src/documentation/content/xdocs/file_system_shell.xml ---------------------------------------------------------------------- diff --git a/src/docs/src/documentation/content/xdocs/file_system_shell.xml b/src/docs/src/documentation/content/xdocs/file_system_shell.xml index 49e31dd..4b24c3f 100644 --- a/src/docs/src/documentation/content/xdocs/file_system_shell.xml +++ b/src/docs/src/documentation/content/xdocs/file_system_shell.xml @@ -460,15 +460,19 @@ <section> <title> setrep </title> <p> - <code>Usage: hdfs dfs -setrep [-R] <path></code> + <code>Usage: hdfs dfs -setrep [-R] [-w] <rep> <path/file></code> </p> <p> - Changes the replication factor of a file. -R option is for recursively increasing the replication factor of files within a directory. - </p> + Changes the replication factor of a file. + -R option is for recursively increasing the replication factor + of files within a directory. -w option requests that the command + wait for the replication to complete. This can potentially + take a long time. + </p> <p>Example:</p> <ul> <li> - <code> hdfs dfs -setrep -w 3 -R /user/hadoop/dir1 </code> + <code> hdfs dfs -setrep -R -w 3 /user/hadoop/dir1 </code> </li> </ul> <p>Exit Code:</p>