Ver código fonte

HADOOP-8791. Fix rm command documentation to indicte it deletes files and not directories. Contributed by Jing Zhao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1390111 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 13 anos atrás
pai
commit
8f7868f126

+ 3 - 0
CHANGES.txt

@@ -220,6 +220,9 @@ Release 1.2.0 - unreleased
     MAPREDUCE-4662.  JobHistoryFilesManager thread pool never expands 
     MAPREDUCE-4662.  JobHistoryFilesManager thread pool never expands 
     (Kihwal Lee via tgraves)
     (Kihwal Lee via tgraves)
 
 
+    HADOOP-8791. Fix rm command documentation to indicte it deletes
+    files and not directories. (Jing Zhao via suresh)
+
 Release 1.1.0 - unreleased
 Release 1.1.0 - unreleased
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 3 - 3
src/docs/src/documentation/content/xdocs/file_system_shell.xml

@@ -412,7 +412,7 @@
 				<code>Usage: hdfs dfs -rm [-skipTrash] URI [URI &#x2026;] </code>
 				<code>Usage: hdfs dfs -rm [-skipTrash] URI [URI &#x2026;] </code>
 			</p>
 			</p>
 			<p>
 			<p>
-	   Delete files specified as args. Only deletes non empty directory and files. If the <code>-skipTrash</code> option
+	   Delete files specified as args. Only deletes files. If the <code>-skipTrash</code> option
 	   is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately.  	This can be
 	   is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately.  	This can be
 		   useful when it is necessary to delete files from an over-quota directory.
 		   useful when it is necessary to delete files from an over-quota directory.
 	   Refer to rmr for recursive deletes.<br/>
 	   Refer to rmr for recursive deletes.<br/>
@@ -420,7 +420,7 @@
 	   </p>
 	   </p>
 			<ul>
 			<ul>
 				<li>
 				<li>
-					<code> hdfs dfs -rm hdfs://nn.example.com/file /user/hadoop/emptydir </code>
+					<code> hdfs dfs -rm hdfs://nn.example.com/file </code>
 				</li>
 				</li>
 			</ul>
 			</ul>
 			<p>Exit Code:</p>
 			<p>Exit Code:</p>
@@ -436,7 +436,7 @@
 			<p>
 			<p>
 				<code>Usage: hdfs dfs -rmr [-skipTrash] URI [URI &#x2026;]</code>
 				<code>Usage: hdfs dfs -rmr [-skipTrash] URI [URI &#x2026;]</code>
 			</p>
 			</p>
-			<p>Recursive version of delete. If the <code>-skipTrash</code> option
+			<p>Recursive version of delete. The rmr command recursively deletes the directory and any content under it. If the <code>-skipTrash</code> option
 		   is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately. This can be
 		   is specified, the trash, if enabled, will be bypassed and the specified file(s) deleted immediately. This can be
 		   useful when it is necessary to delete files from an over-quota directory.<br/>
 		   useful when it is necessary to delete files from an over-quota directory.<br/>
 	   Example:
 	   Example: