Browse Source

HDFS-6649. Documentation for setrep is wrong. (aajisaka)

Akira Ajisaka 10 years ago
parent
commit
8151679f83
2 changed files with 10 additions and 4 deletions
  1. 2 0
      CHANGES.txt
  2. 8 4
      src/docs/src/documentation/content/xdocs/file_system_shell.xml

+ 2 - 0
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

+ 8 - 4
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] &lt;path&gt;</code>
+				<code>Usage: hdfs dfs -setrep [-R] [-w] &lt;rep&gt; &lt;path/file&gt;</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>