Prechádzať zdrojové kódy

Merge -r 674587:674588 from trunk to main to move the change log of HADOOP-3688 into the release 0.18.0 section

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@674598 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 17 rokov pred
rodič
commit
4fcef369df

+ 2 - 0
CHANGES.txt

@@ -320,6 +320,8 @@ Release 0.18.0 - Unreleased
 
     HADOOP-3100. Develop tests to test the DFS command line interface. (mukund)
 
+    HADOOP-3688. Fix up HDFS docs. (Robert Chansler via hairong)
+
   OPTIMIZATIONS
 
     HADOOP-3274. The default constructor of BytesWritable creates empty 

+ 5 - 2
docs/changes.html

@@ -187,7 +187,7 @@ in hadoop user guide.<br />(shv)</li>
     </ol>
   </li>
   <li><a href="javascript:toggleList('release_0.18.0_-_unreleased_._improvements_')">  IMPROVEMENTS
-</a>&nbsp;&nbsp;&nbsp;(45)
+</a>&nbsp;&nbsp;&nbsp;(46)
     <ol id="release_0.18.0_-_unreleased_._improvements_">
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-2928">HADOOP-2928</a>. Remove deprecated FileSystem.getContentLength().<br />(Lohit Vjayarenu via rangadi)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3130">HADOOP-3130</a>. Make the connect timeout smaller for getFile.<br />(Amar Ramesh Kamat via ddas)</li>
@@ -278,6 +278,7 @@ via the DistributedCache.<br />(Amareshwari Sriramadasu via ddas)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3606">HADOOP-3606</a>. Updates the Streaming doc.<br />(Amareshwari Sriramadasu via ddas)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3532">HADOOP-3532</a>. Add jdiff reports to the build scripts.<br />(omalley)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3100">HADOOP-3100</a>. Develop tests to test the DFS command line interface.<br />(mukund)</li>
+      <li><a href="http://issues.apache.org/jira/browse/HADOOP-3688">HADOOP-3688</a>. Fix up HDFS docs.<br />(Robert Chansler via hairong)</li>
     </ol>
   </li>
   <li><a href="javascript:toggleList('release_0.18.0_-_unreleased_._optimizations_')">  OPTIMIZATIONS
@@ -565,7 +566,7 @@ therefore provides better resource management.<br />(hairong)</li>
     </ol>
   </li>
   <li><a href="javascript:toggleList('release_0.17.1_-_unreleased_._bug_fixes_')">  BUG FIXES
-</a>&nbsp;&nbsp;&nbsp;(4)
+</a>&nbsp;&nbsp;&nbsp;(5)
     <ol id="release_0.17.1_-_unreleased_._bug_fixes_">
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-1979">HADOOP-1979</a>. Speed up fsck by adding a buffered stream.<br />(Lohit
 Vijaya Renu via omalley)</li>
@@ -574,6 +575,8 @@ network location is not resolved.<br />(hairong)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3571">HADOOP-3571</a>. Fix bug in block removal used in lease recovery.<br />(shv)</li>
       <li><a href="http://issues.apache.org/jira/browse/HADOOP-3645">HADOOP-3645</a>. MetricsTimeVaryingRate returns wrong value for
 metric_avg_time.<br />(Lohit Vijayarenu via hairong)</li>
+      <li><a href="http://issues.apache.org/jira/browse/HADOOP-3633">HADOOP-3633</a>. Correct exception handling in DataXceiveServer, and throttle
+the number of xceiver threads in a data-node.<br />(shv)</li>
     </ol>
   </li>
 </ul>

+ 61 - 61
docs/hdfs_design.html

@@ -221,7 +221,7 @@ document.write("Last Published: " + document.lastModified);
 </ul>
 </li>
 <li>
-<a href="#Namenode+and+Datanodes"> Namenode and Datanodes </a>
+<a href="#NameNode+and+DataNodes"> NameNode and DataNodes </a>
 </li>
 <li>
 <a href="#The+File+System+Namespace"> The File System Namespace </a>
@@ -236,7 +236,7 @@ document.write("Last Published: " + document.lastModified);
 <a href="#Replica+Selection"> Replica Selection </a>
 </li>
 <li>
-<a href="#SafeMode"> SafeMode </a>
+<a href="#Safemode"> Safemode </a>
 </li>
 </ul>
 </li>
@@ -284,7 +284,7 @@ document.write("Last Published: " + document.lastModified);
 <a href="#Accessibility"> Accessibility </a>
 <ul class="minitoc">
 <li>
-<a href="#DFSShell"> DFSShell </a>
+<a href="#FS+Shell"> FS Shell </a>
 </li>
 <li>
 <a href="#DFSAdmin"> DFSAdmin </a>
@@ -341,7 +341,7 @@ document.write("Last Published: " + document.lastModified);
 <a name="N1004A"></a><a name="Simple+Coherency+Model"></a>
 <h3 class="h4"> Simple Coherency Model </h3>
 <p>
-        HDFS applications need a write-once-read-many access model for files. A file once created, written, and closed need not be changed. This assumption simplifies data coherency issues and enables high throughput data access. A MapReduce application or a web crawler application fits perfectly with this model. There is a plan to support appending-writes to files in the future. 
+        HDFS applications need a write-once-read-many access model for files. A file once created, written, and closed need not be changed. This assumption simplifies data coherency issues and enables high throughput data access. A Map/Reduce application or a web crawler application fits perfectly with this model. There is a plan to support appending-writes to files in the future. 
         </p>
 <a name="N10054"></a><a name="%E2%80%9CMoving+Computation+is+Cheaper+than+Moving+Data%E2%80%9D"></a>
 <h3 class="h4"> &ldquo;Moving Computation is Cheaper than Moving Data&rdquo; </h3>
@@ -357,51 +357,51 @@ document.write("Last Published: " + document.lastModified);
 
  
     
-<a name="N10069"></a><a name="Namenode+and+Datanodes"></a>
-<h2 class="h3"> Namenode and Datanodes </h2>
+<a name="N10069"></a><a name="NameNode+and+DataNodes"></a>
+<h2 class="h3"> NameNode and DataNodes </h2>
 <div class="section">
 <p>
-      HDFS has a master/slave architecture. An HDFS cluster consists of a single <em>Namenode</em>, a master server that manages the file system namespace and regulates access to files by clients. In addition, there are a number of <em>Datanodes</em>, usually one per node in the cluster, which manage storage attached to the nodes that they run on. HDFS exposes a file system namespace and allows user data to be stored in files. Internally, a file is split into one or more blocks and these blocks are stored in a set of Datanodes. The Namenode executes file system namespace operations like opening, closing, and renaming files and directories. It also determines the mapping of blocks to Datanodes. The Datanodes are responsible for serving read and write requests from the file system&rsquo;s clients. The Datanodes also perform block creation, deletion, and replication upon instruction from the Namenode.
+      HDFS has a master/slave architecture. An HDFS cluster consists of a single NameNode, a master server that manages the file system namespace and regulates access to files by clients. In addition, there are a number of DataNodes, usually one per node in the cluster, which manage storage attached to the nodes that they run on. HDFS exposes a file system namespace and allows user data to be stored in files. Internally, a file is split into one or more blocks and these blocks are stored in a set of DataNodes. The NameNode executes file system namespace operations like opening, closing, and renaming files and directories. It also determines the mapping of blocks to DataNodes. The DataNodes are responsible for serving read and write requests from the file system&rsquo;s clients. The DataNodes also perform block creation, deletion, and replication upon instruction from the NameNode.
       </p>
 <div id="" style="text-align: center;">
 <img id="" class="figure" alt="HDFS Architecture" src="images/hdfsarchitecture.gif"></div>
 <p>
-      The Namenode and Datanode are pieces of software designed to run on commodity machines. These machines typically run a GNU/Linux operating system (<acronym title="operating system">OS</acronym>). HDFS is built using the Java language; any machine that supports Java can run the Namenode or the Datanode software. Usage of the highly portable Java language means that HDFS can be deployed on a wide range of machines. A typical deployment has a dedicated machine that runs only the Namenode software. Each of the other machines in the cluster runs one instance of the Datanode software. The architecture does not preclude running multiple Datanodes on the same machine but in a real deployment that is rarely the case.
+      The NameNode and DataNode are pieces of software designed to run on commodity machines. These machines typically run a GNU/Linux operating system (<acronym title="operating system">OS</acronym>). HDFS is built using the Java language; any machine that supports Java can run the NameNode or the DataNode software. Usage of the highly portable Java language means that HDFS can be deployed on a wide range of machines. A typical deployment has a dedicated machine that runs only the NameNode software. Each of the other machines in the cluster runs one instance of the DataNode software. The architecture does not preclude running multiple DataNodes on the same machine but in a real deployment that is rarely the case.
       </p>
 <p>
-      The existence of a single Namenode in a cluster greatly simplifies the architecture of the system. The Namenode is the arbitrator and repository for all HDFS metadata. The system is designed in such a way that user <em>data</em> never flows through the Namenode.
+      The existence of a single NameNode in a cluster greatly simplifies the architecture of the system. The NameNode is the arbitrator and repository for all HDFS metadata. The system is designed in such a way that user data never flows through the NameNode.
       </p>
 </div>
 
  
 
     
-<a name="N1008A"></a><a name="The+File+System+Namespace"></a>
+<a name="N10081"></a><a name="The+File+System+Namespace"></a>
 <h2 class="h3"> The File System Namespace </h2>
 <div class="section">
 <p>
       HDFS supports a traditional hierarchical file organization. A user or an application can create directories and store files inside these directories. The file system namespace hierarchy is similar to most other existing file systems; one can create and remove files, move a file from one directory to another, or rename a file. HDFS does not yet implement user quotas or access permissions. HDFS does not support hard links or soft links. However, the HDFS architecture does not preclude implementing these features.
       </p>
 <p>
-      The Namenode maintains the file system namespace. Any change to the file system namespace or its properties is recorded by the Namenode. An application can specify the number of replicas of a file that should be maintained by HDFS. The number of copies of a file is called the replication factor of that file. This information is stored by the Namenode.
+      The NameNode maintains the file system namespace. Any change to the file system namespace or its properties is recorded by the NameNode. An application can specify the number of replicas of a file that should be maintained by HDFS. The number of copies of a file is called the replication factor of that file. This information is stored by the NameNode.
       </p>
 </div>
 
  
 
     
-<a name="N10097"></a><a name="Data+Replication"></a>
+<a name="N1008E"></a><a name="Data+Replication"></a>
 <h2 class="h3"> Data Replication </h2>
 <div class="section">
 <p>
       HDFS is designed to reliably store very large files across machines in a large cluster. It stores each file as a sequence of blocks; all blocks in a file except the last block are the same size. The blocks of a file are replicated for fault tolerance. The block size and replication factor are configurable per file. An application can specify the number of replicas of a file. The replication factor can be specified at file creation time and can be changed later. Files in HDFS are write-once and have strictly one writer at any time. 
       </p>
 <p>
-      The Namenode makes all decisions regarding replication of blocks. It periodically receives a <em>Heartbeat</em> and a <em>Blockreport</em> from each of the Datanodes in the cluster. Receipt of a Heartbeat implies that the Datanode is functioning properly. A Blockreport contains a list of all blocks on a Datanode. 
+      The NameNode makes all decisions regarding replication of blocks. It periodically receives a Heartbeat and a Blockreport from each of the DataNodes in the cluster. Receipt of a Heartbeat implies that the DataNode is functioning properly. A Blockreport contains a list of all blocks on a DataNode. 
     </p>
 <div id="" style="text-align: center;">
-<img id="" class="figure" alt="HDFS Datanodes" src="images/hdfsdatanodes.gif"></div>
-<a name="N100AD"></a><a name="Replica+Placement%3A+The+First+Baby+Steps"></a>
+<img id="" class="figure" alt="HDFS DataNodes" src="images/hdfsdatanodes.gif"></div>
+<a name="N1009E"></a><a name="Replica+Placement%3A+The+First+Baby+Steps"></a>
 <h3 class="h4"> Replica Placement: The First Baby Steps </h3>
 <p>
         The placement of replicas is critical to HDFS reliability and performance. Optimizing replica placement distinguishes HDFS from most other distributed file systems. This is a feature that needs lots of tuning and experience. The purpose of a rack-aware replica placement policy is to improve data reliability, availability, and network bandwidth utilization. The current implementation for the replica placement policy is a first effort in this direction. The short-term goals of implementing this policy are to validate it on production systems, learn more about its behavior, and build a foundation to test and research more sophisticated policies. 
@@ -418,76 +418,76 @@ document.write("Last Published: " + document.lastModified);
 <p>
         The current, default replica placement policy described here is a work in progress.
         </p>
-<a name="N100C7"></a><a name="Replica+Selection"></a>
+<a name="N100B8"></a><a name="Replica+Selection"></a>
 <h3 class="h4"> Replica Selection </h3>
 <p>
         To minimize global bandwidth consumption and read latency, HDFS tries to satisfy a read request from a replica that is closest to the reader. If there exists a replica on the same rack as the reader node, then that replica is preferred to satisfy the read request. If angg/ HDFS cluster spans multiple data centers, then a replica that is resident in the local data center is preferred over any remote replica.
         </p>
-<a name="N100D1"></a><a name="SafeMode"></a>
-<h3 class="h4"> SafeMode </h3>
+<a name="N100C2"></a><a name="Safemode"></a>
+<h3 class="h4"> Safemode </h3>
 <p>
-        On startup, the Namenode enters a special state called <em>Safemode</em>. Replication of data blocks does not occur when the Namenode is in the Safemode state. The Namenode receives Heartbeat and Blockreport messages from the Datanodes. A Blockreport contains the list of data blocks that a Datanode is hosting. Each block has a specified minimum number of replicas. A block is considered <em>safely replicated</em> when the minimum number of replicas of that data block has checked in with the Namenode. After a configurable percentage of safely replicated data blocks checks in with the Namenode (plus an additional 30 seconds), the Namenode exits the Safemode state. It then determines the list of data blocks (if any) that still have fewer than the specified number of replicas. The Namenode then replicates these blocks to other Datanodes.
+        On startup, the NameNode enters a special state called Safemode. Replication of data blocks does not occur when the NameNode is in the Safemode state. The NameNode receives Heartbeat and Blockreport messages from the DataNodes. A Blockreport contains the list of data blocks that a DataNode is hosting. Each block has a specified minimum number of replicas. A block is considered safely replicated when the minimum number of replicas of that data block has checked in with the NameNode. After a configurable percentage of safely replicated data blocks checks in with the NameNode (plus an additional 30 seconds), the NameNode exits the Safemode state. It then determines the list of data blocks (if any) that still have fewer than the specified number of replicas. The NameNode then replicates these blocks to other DataNodes.
         </p>
 </div>
 
     
-<a name="N100E2"></a><a name="The+Persistence+of+File+System+Metadata"></a>
+<a name="N100CD"></a><a name="The+Persistence+of+File+System+Metadata"></a>
 <h2 class="h3"> The Persistence of File System Metadata </h2>
 <div class="section">
 <p>
-        The HDFS namespace is stored by the Namenode. The Namenode uses a transaction log called the <em>EditLog</em> to persistently record every change that occurs to file system <em>metadata</em>. For example, creating a new file in HDFS causes the Namenode to insert a record into the EditLog indicating this. Similarly, changing the replication factor of a file causes a new record to be inserted into the EditLog. The Namenode uses a file in its <em>local</em> host OS file system to store the EditLog. The entire file system namespace, including the mapping of blocks to files and file system properties, is stored in a file called the <em>FsImage</em>. The FsImage is stored as a file in the Namenode&rsquo;s local file system too.
+        The HDFS namespace is stored by the NameNode. The NameNode uses a transaction log called the EditLog to persistently record every change that occurs to file system metadata. For example, creating a new file in HDFS causes the NameNode to insert a record into the EditLog indicating this. Similarly, changing the replication factor of a file causes a new record to be inserted into the EditLog. The NameNode uses a file in its local host OS file system to store the EditLog. The entire file system namespace, including the mapping of blocks to files and file system properties, is stored in a file called the FsImage. The FsImage is stored as a file in the NameNode&rsquo;s local file system too.
         </p>
 <p>
-        The Namenode keeps an image of the entire file system namespace and file <em>Blockmap</em> in memory. This key metadata item is designed to be compact, such that a Namenode with 4 GB of RAM is plenty to support a huge number of files and directories. When the Namenode starts up, it reads the FsImage and EditLog from disk, applies all the transactions from the EditLog to the in-memory representation of the FsImage, and flushes out this new version into a new FsImage on disk. It can then truncate the old EditLog because its transactions have been applied to the persistent FsImage. This process is called a <em>checkpoint</em>. In the current implementation, a checkpoint only occurs when the Namenode starts up. Work is in progress to support periodic checkpointing in the near future.
+        The NameNode keeps an image of the entire file system namespace and file Blockmap in memory. This key metadata item is designed to be compact, such that a NameNode with 4 GB of RAM is plenty to support a huge number of files and directories. When the NameNode starts up, it reads the FsImage and EditLog from disk, applies all the transactions from the EditLog to the in-memory representation of the FsImage, and flushes out this new version into a new FsImage on disk. It can then truncate the old EditLog because its transactions have been applied to the persistent FsImage. This process is called a checkpoint. In the current implementation, a checkpoint only occurs when the NameNode starts up. Work is in progress to support periodic checkpointing in the near future.
         </p>
 <p>
-        The Datanode stores HDFS data in files in its local file system. The Datanode has no knowledge about HDFS files. It stores each block of HDFS data in a separate file in its local file system. The Datanode does not create all files in the same directory. Instead, it uses a heuristic to determine the optimal number of files per directory and creates subdirectories appropriately. It is not optimal to create all local files in the same directory because the local file system might not be able to efficiently support a huge number of files in a single directory. When a Datanode starts up, it scans through its local file system, generates a list of all HDFS data blocks that correspond to each of these local files and sends this report to the Namenode: this is the Blockreport. 
+        The DataNode stores HDFS data in files in its local file system. The DataNode has no knowledge about HDFS files. It stores each block of HDFS data in a separate file in its local file system. The DataNode does not create all files in the same directory. Instead, it uses a heuristic to determine the optimal number of files per directory and creates subdirectories appropriately. It is not optimal to create all local files in the same directory because the local file system might not be able to efficiently support a huge number of files in a single directory. When a DataNode starts up, it scans through its local file system, generates a list of all HDFS data blocks that correspond to each of these local files and sends this report to the NameNode: this is the Blockreport. 
         </p>
 </div>
 
 
     
-<a name="N10104"></a><a name="The+Communication+Protocols"></a>
+<a name="N100DD"></a><a name="The+Communication+Protocols"></a>
 <h2 class="h3"> The Communication Protocols </h2>
 <div class="section">
 <p>
-      All HDFS communication protocols are layered on top of the TCP/IP protocol. A client establishes a connection to a configurable <acronym title="Transmission Control Protocol">TCP</acronym> port on the Namenode machine. It talks the <em>ClientProtocol</em> with the Namenode. The Datanodes talk to the Namenode using the <em>DatanodeProtocol</em>. A Remote Procedure Call (<acronym title="Remote Procedure Call">RPC</acronym>) abstraction wraps both the ClientProtocol and the DatanodeProtocol. By design, the Namenode never initiates any RPCs. Instead, it only responds to RPC requests issued by Datanodes or clients. 
+      All HDFS communication protocols are layered on top of the TCP/IP protocol. A client establishes a connection to a configurable <acronym title="Transmission Control Protocol">TCP</acronym> port on the NameNode machine. It talks the ClientProtocol with the NameNode. The DataNodes talk to the NameNode using the DataNode Protocol. A Remote Procedure Call (<acronym title="Remote Procedure Call">RPC</acronym>) abstraction wraps both the Client Protocol and the DataNode Protocol. By design, the NameNode never initiates any RPCs. Instead, it only responds to RPC requests issued by DataNodes or clients. 
       </p>
 </div>
  
 
     
-<a name="N1011C"></a><a name="Robustness"></a>
+<a name="N100EF"></a><a name="Robustness"></a>
 <h2 class="h3"> Robustness </h2>
 <div class="section">
 <p>
-      The primary objective of HDFS is to store data reliably even in the presence of failures. The three common types of failures are Namenode failures, Datanode failures and network partitions.
+      The primary objective of HDFS is to store data reliably even in the presence of failures. The three common types of failures are NameNode failures, DataNode failures and network partitions.
       </p>
-<a name="N10125"></a><a name="Data+Disk+Failure%2C+Heartbeats+and+Re-Replication"></a>
+<a name="N100F8"></a><a name="Data+Disk+Failure%2C+Heartbeats+and+Re-Replication"></a>
 <h3 class="h4"> Data Disk Failure, Heartbeats and Re-Replication </h3>
 <p>
-        Each Datanode sends a Heartbeat message to the Namenode periodically. A network partition can cause a subset of Datanodes to lose connectivity with the Namenode. The Namenode detects this condition by the absence of a Heartbeat message. The Namenode marks Datanodes without recent Heartbeats as dead and does not forward any new <acronym title="Input/Output">IO</acronym> requests to them. Any data that was registered to a dead Datanode is not available to HDFS any more. Datanode death may cause the replication factor of some blocks to fall below their specified value. The Namenode constantly tracks which blocks need to be replicated and initiates replication whenever necessary. The necessity for re-replication may arise due to many reasons: a Datanode may become unavailable, a replica may become corrupted, a hard disk on a Datanode may fail, or the replication factor of a file may be increased. 
+        Each DataNode sends a Heartbeat message to the NameNode periodically. A network partition can cause a subset of DataNodes to lose connectivity with the NameNode. The NameNode detects this condition by the absence of a Heartbeat message. The NameNode marks DataNodes without recent Heartbeats as dead and does not forward any new <acronym title="Input/Output">IO</acronym> requests to them. Any data that was registered to a dead DataNode is not available to HDFS any more. DataNode death may cause the replication factor of some blocks to fall below their specified value. The NameNode constantly tracks which blocks need to be replicated and initiates replication whenever necessary. The necessity for re-replication may arise due to many reasons: a DataNode may become unavailable, a replica may become corrupted, a hard disk on a DataNode may fail, or the replication factor of a file may be increased. 
         </p>
-<a name="N10133"></a><a name="Cluster+Rebalancing"></a>
+<a name="N10106"></a><a name="Cluster+Rebalancing"></a>
 <h3 class="h4"> Cluster Rebalancing </h3>
 <p>
-        The HDFS architecture is compatible with <em>data rebalancing schemes</em>. A scheme might automatically move data from one Datanode to another if the free space on a Datanode falls below a certain threshold. In the event of a sudden high demand for a particular file, a scheme might dynamically create additional replicas and rebalance other data in the cluster. These types of data rebalancing schemes are not yet implemented. 
+        The HDFS architecture is compatible with data rebalancing schemes. A scheme might automatically move data from one DataNode to another if the free space on a DataNode falls below a certain threshold. In the event of a sudden high demand for a particular file, a scheme might dynamically create additional replicas and rebalance other data in the cluster. These types of data rebalancing schemes are not yet implemented. 
         </p>
-<a name="N10140"></a><a name="Data+Integrity"></a>
+<a name="N10110"></a><a name="Data+Integrity"></a>
 <h3 class="h4"> Data Integrity </h3>
 <p>
         <!-- XXX "checksum checking" sounds funny -->
-        It is possible that a block of data fetched from a Datanode arrives corrupted. This corruption can occur because of faults in a storage device, network faults, or buggy software. The HDFS client software implements checksum checking on the contents of HDFS files. When a client creates an HDFS file, it computes a checksum of each block of the file and stores these checksums in a separate hidden file in the same HDFS namespace. When a client retrieves file contents it verifies that the data it received from each Datanode matches the checksum stored in the associated checksum file. If not, then the client can opt to retrieve that block from another Datanode that has a replica of that block.
+        It is possible that a block of data fetched from a DataNode arrives corrupted. This corruption can occur because of faults in a storage device, network faults, or buggy software. The HDFS client software implements checksum checking on the contents of HDFS files. When a client creates an HDFS file, it computes a checksum of each block of the file and stores these checksums in a separate hidden file in the same HDFS namespace. When a client retrieves file contents it verifies that the data it received from each DataNode matches the checksum stored in the associated checksum file. If not, then the client can opt to retrieve that block from another DataNode that has a replica of that block.
         </p>
-<a name="N1014C"></a><a name="Metadata+Disk+Failure"></a>
+<a name="N1011C"></a><a name="Metadata+Disk+Failure"></a>
 <h3 class="h4"> Metadata Disk Failure </h3>
 <p>
-        The FsImage and the EditLog are central data structures of HDFS. A corruption of these files can cause the HDFS instance to be non-functional. For this reason, the Namenode can be configured to support maintaining multiple copies of the FsImage and EditLog. Any update to either the FsImage or EditLog causes each of the FsImages and EditLogs to get updated synchronously. This synchronous updating of multiple copies of the FsImage and EditLog may degrade the rate of namespace transactions per second that a Namenode can support. However, this degradation is acceptable because even though HDFS applications are very <em>data</em> intensive in nature, they are not <em>metadata</em> intensive. When a Namenode restarts, it selects the latest consistent FsImage and EditLog to use.
+        The FsImage and the EditLog are central data structures of HDFS. A corruption of these files can cause the HDFS instance to be non-functional. For this reason, the NameNode can be configured to support maintaining multiple copies of the FsImage and EditLog. Any update to either the FsImage or EditLog causes each of the FsImages and EditLogs to get updated synchronously. This synchronous updating of multiple copies of the FsImage and EditLog may degrade the rate of namespace transactions per second that a NameNode can support. However, this degradation is acceptable because even though HDFS applications are very data intensive in nature, they are not metadata intensive. When a NameNode restarts, it selects the latest consistent FsImage and EditLog to use.
         </p>
 <p> 
-        The Namenode machine is a single point of failure for an HDFS cluster. If the Namenode machine fails, manual intervention is necessary. Currently, automatic restart and failover of the Namenode software to another machine is not supported.
+        The NameNode machine is a single point of failure for an HDFS cluster. If the NameNode machine fails, manual intervention is necessary. Currently, automatic restart and failover of the NameNode software to another machine is not supported.
         </p>
-<a name="N1015F"></a><a name="Snapshots"></a>
+<a name="N10129"></a><a name="Snapshots"></a>
 <h3 class="h4"> Snapshots </h3>
 <p>
         Snapshots support storing a copy of data at a particular instant of time. One usage of the snapshot feature may be to roll back a corrupted HDFS instance to a previously known good point in time. HDFS does not currently support snapshots but will in a future release.
@@ -496,40 +496,40 @@ document.write("Last Published: " + document.lastModified);
  
 
     
-<a name="N1016A"></a><a name="Data+Organization"></a>
+<a name="N10134"></a><a name="Data+Organization"></a>
 <h2 class="h3"> Data Organization </h2>
 <div class="section">
-<a name="N10172"></a><a name="Data+Blocks"></a>
+<a name="N1013C"></a><a name="Data+Blocks"></a>
 <h3 class="h4"> Data Blocks </h3>
 <p>
-        HDFS is designed to support very large files. Applications that are compatible with HDFS are those that deal with large data sets. These applications write their data only once but they read it one or more times and require these reads to be satisfied at streaming speeds. HDFS supports write-once-read-many semantics on files. A typical block size used by HDFS is 64 MB. Thus, an HDFS file is chopped up into 64 MB chunks, and if possible, each chunk will reside on a different Datanode.
+        HDFS is designed to support very large files. Applications that are compatible with HDFS are those that deal with large data sets. These applications write their data only once but they read it one or more times and require these reads to be satisfied at streaming speeds. HDFS supports write-once-read-many semantics on files. A typical block size used by HDFS is 64 MB. Thus, an HDFS file is chopped up into 64 MB chunks, and if possible, each chunk will reside on a different DataNode.
         </p>
-<a name="N1017C"></a><a name="Staging"></a>
+<a name="N10146"></a><a name="Staging"></a>
 <h3 class="h4"> Staging </h3>
 <p>
-        A client request to create a file does not reach the Namenode immediately. In fact, initially the HDFS client caches the file data into a temporary local file. Application writes are transparently redirected to this temporary local file. When the local file accumulates data worth over one HDFS block size, the client contacts the Namenode. The Namenode inserts the file name into the file system hierarchy and allocates a data block for it. The Namenode responds to the client request with the identity of the Datanode and the destination data block. Then the client flushes the block of data from the local temporary file to the specified Datanode. When a file is closed, the remaining un-flushed data in the temporary local file is transferred to the Datanode. The client then tells the Namenode that the file is closed. At this point, the Namenode commits the file creation operation into a persistent store. If the Namenode dies before the file is closed, the file is lost. 
+        A client request to create a file does not reach the NameNode immediately. In fact, initially the HDFS client caches the file data into a temporary local file. Application writes are transparently redirected to this temporary local file. When the local file accumulates data worth over one HDFS block size, the client contacts the NameNode. The NameNode inserts the file name into the file system hierarchy and allocates a data block for it. The NameNode responds to the client request with the identity of the DataNode and the destination data block. Then the client flushes the block of data from the local temporary file to the specified DataNode. When a file is closed, the remaining un-flushed data in the temporary local file is transferred to the DataNode. The client then tells the NameNode that the file is closed. At this point, the NameNode commits the file creation operation into a persistent store. If the NameNode dies before the file is closed, the file is lost. 
         </p>
 <p>
         The above approach has been adopted after careful consideration of target applications that run on HDFS. These applications need streaming writes to files. If a client writes to a remote file directly without any client side buffering, the network speed and the congestion in the network impacts throughput considerably. This approach is not without precedent. Earlier distributed file systems, e.g. <acronym title="Andrew File System">AFS</acronym>, have used client side caching to improve performance. A POSIX requirement has been relaxed to achieve higher performance of data uploads. 
         </p>
-<a name="N1018F"></a><a name="Replication+Pipelining"></a>
+<a name="N10159"></a><a name="Replication+Pipelining"></a>
 <h3 class="h4"> Replication Pipelining </h3>
 <p>
-        When a client is writing data to an HDFS file, its data is first written to a local file as explained in the previous section. Suppose the HDFS file has a replication factor of three. When the local file accumulates a full block of user data, the client retrieves a list of Datanodes from the Namenode. This list contains the Datanodes that will host a replica of that block. The client then flushes the data block to the first Datanode. The first Datanode starts receiving the data in small portions (4 KB), writes each portion to its local repository and transfers that portion to the second Datanode in the list. The second Datanode, in turn starts receiving each portion of the data block, writes that portion to its repository and then flushes that portion to the third Datanode. Finally, the third Datanode writes the data to its local repository. Thus, a Datanode can be receiving data from the previous one in the pipeline and at the same time forwarding data to the next one in the pipeline. Thus, the data is pipelined from one Datanode to the next.
+        When a client is writing data to an HDFS file, its data is first written to a local file as explained in the previous section. Suppose the HDFS file has a replication factor of three. When the local file accumulates a full block of user data, the client retrieves a list of DataNodes from the NameNode. This list contains the DataNodes that will host a replica of that block. The client then flushes the data block to the first DataNode. The first DataNode starts receiving the data in small portions (4 KB), writes each portion to its local repository and transfers that portion to the second DataNode in the list. The second DataNode, in turn starts receiving each portion of the data block, writes that portion to its repository and then flushes that portion to the third DataNode. Finally, the third DataNode writes the data to its local repository. Thus, a DataNode can be receiving data from the previous one in the pipeline and at the same time forwarding data to the next one in the pipeline. Thus, the data is pipelined from one DataNode to the next.
         </p>
 </div>
 
     
-<a name="N1019A"></a><a name="Accessibility"></a>
+<a name="N10164"></a><a name="Accessibility"></a>
 <h2 class="h3"> Accessibility </h2>
 <div class="section">
 <p>
       HDFS can be accessed from applications in many different ways. Natively, HDFS provides a <a href="http://hadoop.apache.org/core/docs/current/api/">Java API</a> for applications to use. A C language wrapper for this Java API is also available. In addition, an HTTP browser can also be used to browse the files of an HDFS instance. Work is in progress to expose HDFS through the <acronym title="Web-based Distributed Authoring and Versioning">WebDAV</acronym> protocol. 
       </p>
-<a name="N101AF"></a><a name="DFSShell"></a>
-<h3 class="h4"> DFSShell </h3>
+<a name="N10179"></a><a name="FS+Shell"></a>
+<h3 class="h4"> FS Shell </h3>
 <p>
-        HDFS allows user data to be organized in the form of files and directories. It provides a commandline interface called <em>DFSShell</em> that lets a user interact with the data in HDFS. The syntax of this command set is similar to other shells (e.g. bash, csh) that users are already familiar with. Here are some sample action/command pairs:
+        HDFS allows user data to be organized in the form of files and directories. It provides a commandline interface called  FS shell that lets a user interact with the data in HDFS. The syntax of this command set is similar to other shells (e.g. bash, csh) that users are already familiar with. Here are some sample action/command pairs:
         </p>
 <table class="ForrestTable" cellspacing="1" cellpadding="4">
           
@@ -559,12 +559,12 @@ document.write("Last Published: " + document.lastModified);
         
 </table>
 <p>
-        DFSShell is targeted for applications that need a scripting language to interact with the stored data.
+        FS shell is targeted for applications that need a scripting language to interact with the stored data.
         </p>
-<a name="N10207"></a><a name="DFSAdmin"></a>
+<a name="N101CE"></a><a name="DFSAdmin"></a>
 <h3 class="h4"> DFSAdmin </h3>
 <p>
-        The <em>DFSAdmin</em> command set is used for administering an HDFS cluster. These are commands that are used only by an HDFS administrator. Here are some sample action/command pairs:
+        The DFSAdmin command set is used for administering an HDFS cluster. These are commands that are used only by an HDFS administrator. Here are some sample action/command pairs:
         </p>
 <table class="ForrestTable" cellspacing="1" cellpadding="4">
           
@@ -576,24 +576,24 @@ document.write("Last Published: " + document.lastModified);
           
 <tr>
             
-<td colspan="1" rowspan="1"> Put a cluster in SafeMode </td> <td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -safemode enter</span> </td>
+<td colspan="1" rowspan="1"> Put the cluster in Safemode </td> <td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -safemode enter</span> </td>
           
 </tr>
           
 <tr>
             
-<td colspan="1" rowspan="1"> Generate a list of Datanodes </td> <td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -report</span> </td>
+<td colspan="1" rowspan="1"> Generate a list of DataNodes </td> <td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -report</span> </td>
           
 </tr>
           
 <tr>
             
-<td colspan="1" rowspan="1"> Decommission Datanode <span class="codefrag">datanodename</span> </td><td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -decommission datanodename</span> </td>
+<td colspan="1" rowspan="1"> Decommission DataNode <span class="codefrag">datanodename</span> </td><td colspan="1" rowspan="1"> <span class="codefrag">bin/hadoop dfsadmin -decommission datanodename</span> </td>
           
 </tr>
         
 </table>
-<a name="N10255"></a><a name="Browser+Interface"></a>
+<a name="N10219"></a><a name="Browser+Interface"></a>
 <h3 class="h4"> Browser Interface </h3>
 <p>
         A typical HDFS install configures a web server to expose the HDFS namespace through a configurable TCP port. This allows a user to navigate the HDFS namespace and view the contents of its files using a web browser.
@@ -601,27 +601,27 @@ document.write("Last Published: " + document.lastModified);
 </div> 
 
     
-<a name="N10260"></a><a name="Space+Reclamation"></a>
+<a name="N10224"></a><a name="Space+Reclamation"></a>
 <h2 class="h3"> Space Reclamation </h2>
 <div class="section">
-<a name="N10266"></a><a name="File+Deletes+and+Undeletes"></a>
+<a name="N1022A"></a><a name="File+Deletes+and+Undeletes"></a>
 <h3 class="h4"> File Deletes and Undeletes </h3>
 <p>
-        When a file is deleted by a user or an application, it is not immediately removed from HDFS.  Instead, HDFS first renames it to a file in the <span class="codefrag">/trash</span> directory. The file can be restored quickly as long as it remains in <span class="codefrag">/trash</span>. A file remains in <span class="codefrag">/trash</span> for a configurable amount of time. After the expiry of its life in <span class="codefrag">/trash</span>, the Namenode deletes the file from the HDFS namespace. The deletion of a file causes the blocks associated with the file to be freed. Note that there could be an appreciable time delay between the time a file is deleted by a user and the time of the corresponding increase in free space in HDFS.
+        When a file is deleted by a user or an application, it is not immediately removed from HDFS.  Instead, HDFS first renames it to a file in the <span class="codefrag">/trash</span> directory. The file can be restored quickly as long as it remains in <span class="codefrag">/trash</span>. A file remains in <span class="codefrag">/trash</span> for a configurable amount of time. After the expiry of its life in <span class="codefrag">/trash</span>, the NameNode deletes the file from the HDFS namespace. The deletion of a file causes the blocks associated with the file to be freed. Note that there could be an appreciable time delay between the time a file is deleted by a user and the time of the corresponding increase in free space in HDFS.
         </p>
 <p>
         A user can Undelete a file after deleting it as long as it remains in the <span class="codefrag">/trash</span> directory. If a user wants to undelete a file that he/she has deleted, he/she can navigate the <span class="codefrag">/trash</span> directory and retrieve the file. The <span class="codefrag">/trash</span> directory contains only the latest copy of the file that was deleted. The <span class="codefrag">/trash</span> directory is just like any other directory with one special feature: HDFS applies specified policies to automatically delete files from this directory. The current default policy is to delete files from <span class="codefrag">/trash</span> that are more than 6 hours old. In the future, this policy will be configurable through a well defined interface.
         </p>
-<a name="N1028E"></a><a name="Decrease+Replication+Factor"></a>
+<a name="N10252"></a><a name="Decrease+Replication+Factor"></a>
 <h3 class="h4"> Decrease Replication Factor </h3>
 <p>
-        When the replication factor of a file is reduced, the Namenode selects excess replicas that can be deleted. The next Heartbeat transfers this information to the Datanode. The Datanode then removes the corresponding blocks and the corresponding free space appears in the cluster. Once again, there might be a time delay between the completion of the <span class="codefrag">setReplication</span> API call and the appearance of free space in the cluster.
+        When the replication factor of a file is reduced, the NameNode selects excess replicas that can be deleted. The next Heartbeat transfers this information to the DataNode. The DataNode then removes the corresponding blocks and the corresponding free space appears in the cluster. Once again, there might be a time delay between the completion of the <span class="codefrag">setReplication</span> API call and the appearance of free space in the cluster.
         </p>
 </div>
 
 
     
-<a name="N1029C"></a><a name="References"></a>
+<a name="N10260"></a><a name="References"></a>
 <h2 class="h3"> References </h2>
 <div class="section">
 <p>

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 7 - 7
docs/hdfs_design.pdf


+ 15 - 15
docs/hdfs_quota_admin_guide.html

@@ -6,7 +6,7 @@
 <meta name="Forrest-version" content="0.8">
 <meta name="Forrest-skin-name" content="pelt">
 <title>
-      Hadoop DFS Name Space Quotas Administrator Guide
+      Name Space Quotas Administrator Guide
     </title>
 <link type="text/css" href="skin/basic.css" rel="stylesheet">
 <link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">
@@ -190,20 +190,20 @@ document.write("Last Published: " + document.lastModified);
         PDF</a>
 </div>
 <h1>
-      Hadoop DFS Name Space Quotas Administrator Guide
+      Name Space Quotas Administrator Guide
     </h1>
       
 <p>
-      HDFS allows the administrator to set quotas on individual directories. 
+      The Hadoop Distributed File System (HDFS) allows the administrator to set quotas on individual directories. 
       Newly created directories have no associated quota. 
-      The largest quota is Long.Max_Value. A quota of one forces a directory 
+      The largest quota is <span class="codefrag">Long.Max_Value</span>. A quota of one forces a directory 
       to remain empty.
       </p>
 
       
 <p>
       The directory quota is a hard limit on the number of names in the tree 
-      rooted at that directory. File/directory creations fault if the quota 
+      rooted at that directory. File and directory creations fault if the quota 
       would be exceeded. Quotas stick to renamed directories; the rename 
       operation faults if operation would result in a quota violation. 
       The attempt to set a quota faults if the directory would be in violation 
@@ -213,9 +213,9 @@ document.write("Last Published: " + document.lastModified);
       
 <p>
       Quotas are persistent with the fsimage. When starting, if the fsimage 
-      is immediately in violation of aquota (perhaps the fsimage was 
-      surreptitiously modified), startup operation fails with an error report. 
-      Setting/removing a quota creates a journal entry.
+      is immediately in violation of a quota (perhaps the fsimage was 
+      surreptitiously modified), the startup operation fails with an error report. 
+      Setting or removing a quota creates a journal entry.
       </p> 
 
       
@@ -229,11 +229,11 @@ document.write("Last Published: " + document.lastModified);
       
 <li>
       
-<strong><em>dfsadmin -setquota &lt;N&gt; &lt;directory&gt;...&lt;directory&gt;</em></strong> 
+<span class="codefrag">dfsadmin -setquota &lt;N&gt; &lt;directory&gt;...&lt;directory&gt;</span> 
       
 <br>
-      Set the quota <em></em> for each directory. Best effort for each directory,
-      with faults reported if <em>N</em> is not a positive long integer, 
+      Set the quota to be <span class="codefrag">N</span> for each directory. Best effort for each directory,
+      with faults reported if <span class="codefrag">N</span> is not a positive long integer, 
       the directory does not exist or it is a file, or the directory would 
       immediately exceed the new quota.
       </li>
@@ -241,7 +241,7 @@ document.write("Last Published: " + document.lastModified);
       
 <li>
       
-<strong><em>dfsadmin -clrquota &lt;directory&gt;...&lt;director&gt;</em></strong>
+<span class="codefrag">dfsadmin -clrquota &lt;directory&gt;...&lt;director&gt;</span>
 <br> 
       Remove any quota for each directory. Best effort for each directory, 
       with faults reported if the directory does not exist or it is a file. 
@@ -251,11 +251,11 @@ document.write("Last Published: " + document.lastModified);
       
 <li>
       
-<strong><em>fs -count -q &lt;directory&gt;...&lt;directory&gt;</em></strong>
+<span class="codefrag">fs -count -q &lt;directory&gt;...&lt;directory&gt;</span>
 <br>
-      With the <em>-q</em> option, also report the quota value set for each 
+      With the <span class="codefrag">-q</span> option, also report the quota value set for each 
       directory, and the available quota remaining. If the directory does not have 
-      a quota set, the reported values are <em>none</em> and <em>inf</em>.
+      a quota set, the reported values are <span class="codefrag">none</span> and <span class="codefrag">inf</span>.
       </li>
       
 </ul>

+ 19 - 27
docs/hdfs_quota_admin_guide.pdf

@@ -5,10 +5,10 @@
 /Producer (FOP 0.20.5) >>
 endobj
 5 0 obj
-<< /Length 1627 /Filter [ /ASCII85Decode /FlateDecode ]
+<< /Length 1716 /Filter [ /ASCII85Decode /FlateDecode ]
  >>
 stream
-Gb!;dbAQW(&Dd46ZqQ!<d>PGl()KNqV@U$7dMTZUVC3:<ZIqjE6;_pspSAohLG\6@`U0D@+s'n)R5sk"k07XaFW5[)iWn>?Qj*H'C_h9]=m-%[0D(S/Z[!2YnN?JFQ1t1/%le4'3VP/$74Q&6qtB_L$$Wm'8pY/i#/pD!$/D,!IsA#d$j0q>$s_s1X_B:F(5sd2mlQu%8bqWeH!rNjXW<'ki6R$dnoSm]p"u:uZ=LRJa^RWQQ_r$l*Mu$06n%#>$=tls>(*8j::E(KE2fGjP`nc^9hFZOVfuZQ^+(kt":LCI!(-4m:\JdZ_j']rDa?KCE#c>=bNO2Vk!/?G"i2TA?^''"('FoerljZ8rsO;Oo/Bot"Is`(<+cBQNEF)`'cHDV/JufAV"beX=*r(LWA"LD+]TanIB11,p4L%E%1J/O'6%?H&.S[nBgm`h?F3&#]BY5l4'8n,/msUKc4HKGM)2$**XenNV*h1^LlulEVgF5;Bh>HYcjV3o=Uj.;E*!)cZuC8,TXnW=$+t]gDj$HGOIYC)g?srLC^&)_FqmH,UUA:.`EZ+Jct-QE>TSq-a_D)'_De3-mGV8U2koH1e\M?k@OH8%b0&[JZb\4*cXSh6YRl5<]OUlMD4c\e][9e.;@WdnKP0`d]q*74Gj&:<80Tp0bZ_k'*%4b:aur%*JB!V,NPg4mdL*2:>l;5X_!tH5/nhr4GR%^,=n][!.p:@"OG=4?8'MZ_ZrFC"%5>&LhT$[f%;oEtoZ5(Des.9=U_-S[lWWLc`H#-YP!>OF(t`rT)sp'e/#,X%Uo'EK+:L11kA]<Omhci`>7X-ol+)tHKPfh+pU%`G`pHFX0@oY3&d)9-Nd2Qs'/b`UPuOuZb%TXFFe5k<_K?@Q$$X&))Ilrd`K'O0D@UM'FA3:2abX2dU7`J=$F+)q8PAtq#Y($;B3P</U&#"'(tsgT/-juTSPFNj,'6XPNtfGR*Ada$abt=]6!:pd"49[;f6<j;E#<PdI,>1W#mra37\T+n#GS>9pV&1dNX<ur_8Et#Is.S!4Alks1>d-ikZ#71bS;fi'eH/0`(_AuO$Gth_FJYfKtA"kTdZ2p-b9@:LVa1rUsXss:c%u<CKN)7'P,Z=K=s`i6.U]r3:^N]CcR..5dO*i-qjc^*V)W(a"/JF]<H(_I'TFYJOs?&@I%5;$.t#7Y.H^3^gDPl3C>J?/BsTJgh]`45JGs6d5"^Ci7EDg^^4/UIi&#)3mpn8;2RU\I=T'1Vc=4WqU)"qlK@p@!3q3a_:n],Xm9X4qXK@+]%8nMVudgNbZG*1kN2<%=>^[_<TeiqVQnDi*MUWIbFtsWd/2l^3(Hk6<uBTq-sKrbbUh6;XhS_&r;c$fq=hQIq1QX4hFbA9T1Y<N9OK2<bp:3?nKpS#2H\",VRQ2U+#bd:OLS?BnV/+C1hiY1AI$:HMb$@2<d-VQ$8;ZK]E[<M,q&G7*2U4RXc$+9P0gS@n(I/1Zfg;AF(j&W=SN9b,t"nf+!H[YYF+.lDYaah8:L#'(SkcP8.`9Q%2&/tF6"o_M83fa)qMZB]&!iU)Xf:#,8;UV$A*tp-D!=,f8V=WG_=-GZ(!`KpuGK$JR&/bT@D"]$%qU\aJ:,04'\-=6iRDg%oCO~>
+Gb!#\>Ar7S'Roe[csm-QW^M]PN"#rZF]gY>!O<R._`S?d7G6HAd30r#q=gX:2@jBI8VR]lqN)b$LZeZ-:V:"-hVTRZ9#E&Z'U,KoZ^O:uH4gIFrYGh2p=V9^_IT)=M^nN#ig*R913eRdRJu=-IS3^,]PG#$d`<O%MUbBM5nk-%_&pMQVpWn3@ZLG]@6#@bH@LR")"i>\)Al!'1eN+S`MPGOgE/%3PFV6HO[$7.fgDNJDB@Z=&uaSM91:?U0/#M=]")0SRO=m^q-FtB6&WYkn+[AOs-H\&iUN;,?KSXG-TINJkoiAokA830L6P.ZB7d:n77Lj%T&.nDq/"!7TYu^-BUOVpZ30XH^i:PE?SVG6c@96M8q0FNR`]WWc2`")TjrWD=Rl2Y`T&?V,Q4L9nM@B#i@j9Vceh:HSEgue[Bm+rE<"sTYK+KoYXfnXJr:Af+$%U7Zb$ePXU(te9WP:A%\;j@OtPtI%X49W3R6EoD281'/6TrVh1a/JY++^-$?oNc%0OB]o:;QX"d7g!C+,gL)O-8U3`D8To<,B)MX6HP[A2p*F2<)1S1dE3!n47?`%oL.Si7t"o`3jE:Ff%YRY,4a)pQ)rD"Y9@<SHg%cG4'kK774&^[\hh*sG9HV4n?I'YSUDms'6p[@krC*dErp;n$8Lm*6W(M'M"o@aL2be]uDiT[n&Y>eK?UBff76)#,gJp[$O"7e`e\lUXC#%#0agM$S'n/t(3NM:NdgH_r\Bqh8Pq=]8.Q0,k6<Q\l'flLi[X1,bZaL*Ka`So,>OgeuA,!E1g6#l$_ArInRdWS!<7DgS+$]=6q/&V=m8e!:pZ?*8Ft$:aXKjd##e/nGK",%-?L_8b,8=[?.=I<?cRI0]j&LN\pj"c@P#<Eh?=KCsE,GLits/G;3C]iP-lNMn!Vd7rdilsu]6BNr;WMIh'Cc,>K@Pm2Bq%`NaZDb%ld%0jpq\9fdjBXVdW7S/\*W`(SPM2p<]O\&(@=U\]^n4'I^&#"_J;A6Z6E2#X<Q49`D&]/0@<7Ya`%[7d8F$X$%7\/Xb)E\Oa+!,iWqZ-sm0`2K:+ct!rYJDoQbq.aNCZ5/7.kJsJ4VJjarZru!c.nm8KlIgdYsJIqMNS\k3_2XKc`Sjk98g[PS_"hcTYmAk_fi=HBZR"K/iWo$5ObnL>?(;T_))XcG\Wjj/ktje%e3X%_KjD^gNLc:`_?/-;0"YNXB'F;Kb$6c9/l%`B9te:=:(@>aDa;D\Br1ab,qd@aN.0[Pb.G!5='8V]Ug+WR1B#.5^2kuD.!nW0QM][WYAqsE6nR-j,`>j_4=rf]jl&)s-Lt0D^=^UHc"*aGVa/DjXo!Q5OEKQW#n/@^3P1pa,qUB%C+3.CL8:q6-5Vm]%&K69#?VN9ui#"o&J>(D$XbY%)/60CqmFrL!saN+40k+#*/A]@u[)JJA*>+jPrFPh7h_<="-X'70!5T=<HJpFkKNr>OkV%TbXEVJC;NPrpiHu7+fRfB=R:I0L$*!.Ilf,dp:b*F3I"bm=6E$iYf$X:j;Y/06LY(^'_Kjqg/fa*Ds+A=C%H'Oj:l?=QM6Fh_-=;h,SGRX)Ts(B/iGoE2+!'5gZ0kgeFs+.qYT,%u2[t%*_ZYDO=pm_tauOo0hc72t7pG4q"gUFB.TZP*ZHp7ae)NAu(!H%l_d<h4X7hRMT^'Hj94=DDW'gk42qW.n_+/[_XQ(TTY1<GFNXZr?'TpQ)"~>
 endstream
 endobj
 6 0 obj
@@ -36,27 +36,20 @@ endobj
 9 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F8
-/BaseFont /Times-BoldItalic
+/Name /F1
+/BaseFont /Helvetica
 /Encoding /WinAnsiEncoding >>
 endobj
 10 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F6
-/BaseFont /Times-Italic
+/Name /F9
+/BaseFont /Courier
 /Encoding /WinAnsiEncoding >>
 endobj
 11 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F1
-/BaseFont /Helvetica
-/Encoding /WinAnsiEncoding >>
-endobj
-12 0 obj
-<< /Type /Font
-/Subtype /Type1
 /Name /F2
 /BaseFont /Helvetica-Oblique
 /Encoding /WinAnsiEncoding >>
@@ -73,30 +66,29 @@ endobj
 endobj
 3 0 obj
 << 
-/Font << /F3 7 0 R /F5 8 0 R /F8 9 0 R /F1 11 0 R /F6 10 0 R /F2 12 0 R >> 
+/Font << /F3 7 0 R /F5 8 0 R /F1 9 0 R /F9 10 0 R /F2 11 0 R >> 
 /ProcSet [ /PDF /ImageC /Text ] >> 
 endobj
 xref
-0 13
+0 12
 0000000000 65535 f 
-0000002566 00000 n 
-0000002624 00000 n 
-0000002674 00000 n 
+0000002535 00000 n 
+0000002593 00000 n 
+0000002643 00000 n 
 0000000015 00000 n 
 0000000071 00000 n 
-0000001790 00000 n 
-0000001896 00000 n 
-0000002008 00000 n 
-0000002117 00000 n 
-0000002231 00000 n 
-0000002342 00000 n 
-0000002450 00000 n 
+0000001879 00000 n 
+0000001985 00000 n 
+0000002097 00000 n 
+0000002206 00000 n 
+0000002313 00000 n 
+0000002419 00000 n 
 trailer
 <<
-/Size 13
+/Size 12
 /Root 2 0 R
 /Info 4 0 R
 >>
 startxref
-2805
+2763
 %%EOF

+ 135 - 143
docs/hdfs_user_guide.html

@@ -6,7 +6,7 @@
 <meta name="Forrest-version" content="0.8">
 <meta name="Forrest-skin-name" content="pelt">
 <title>
-      Hadoop DFS User Guide
+      HDFS User Guide
     </title>
 <link type="text/css" href="skin/basic.css" rel="stylesheet">
 <link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">
@@ -190,7 +190,7 @@ document.write("Last Published: " + document.lastModified);
         PDF</a>
 </div>
 <h1>
-      Hadoop DFS User Guide
+      HDFS User Guide
     </h1>
 <div id="minitoc-area">
 <ul class="minitoc">
@@ -215,7 +215,7 @@ document.write("Last Published: " + document.lastModified);
 </ul>
 </li>
 <li>
-<a href="#Secondary+Namenode"> Secondary Namenode </a>
+<a href="#Secondary+NameNode"> Secondary NameNode </a>
 </li>
 <li>
 <a href="#Rebalancer"> Rebalancer </a>
@@ -227,7 +227,7 @@ document.write("Last Published: " + document.lastModified);
 <a href="#Safemode"> Safemode </a>
 </li>
 <li>
-<a href="#Fsck"> Fsck </a>
+<a href="#fsck"> fsck </a>
 </li>
 <li>
 <a href="#Upgrade+and+Rollback"> Upgrade and Rollback </a>
@@ -248,11 +248,11 @@ document.write("Last Published: " + document.lastModified);
 <h2 class="h3">Purpose</h2>
 <div class="section">
 <p>
- This document aims to be the starting point for users working with
+ This document is a starting point for users working with
  Hadoop Distributed File System (HDFS) either as a part of a
  <a href="http://hadoop.apache.org/">Hadoop</a>
  cluster or as a stand-alone general purpose distributed file system.
- While HDFS is designed to "just-work" in many environments, a working
+ While HDFS is designed to "just work" in many environments, a working
  knowledge of HDFS helps greatly with configuration improvements and
  diagnostics on a specific cluster.
       </p>
@@ -264,21 +264,20 @@ document.write("Last Published: " + document.lastModified);
 <div class="section">
 <p>
  HDFS is the primary distributed storage used by Hadoop applications. A
- HDFS cluster primarily consists of a <em>NameNode</em> that manages the
- filesystem metadata and Datanodes that store the actual data. The
+ HDFS cluster primarily consists of a NameNode that manages the
+ file system metadata and DataNodes that store the actual data. The
  architecture of HDFS is described in detail
  <a href="hdfs_design.html">here</a>. This user guide primarily deals with 
  interaction of users and administrators with HDFS clusters. 
  The <a href="images/hdfsarchitecture.gif">diagram</a> from 
  <a href="hdfs_design.html">HDFS architecture</a> depicts 
- basic interactions among Namenode, Datanodes, and the clients. Eseentially,
- clients contact Namenode for file metadata or file modifications and perform 
- actual file I/O directly with the datanodes.
+ basic interactions among NameNode, the DataNodes, and the clients. 
+ Clients contact NameNode for file metadata or file modifications and perform 
+ actual file I/O directly with the DataNodes.
       </p>
 <p>
  The following are some of the salient features that could be of
- interest to many users. The terms in <em>italics</em>
- are described in later sections.
+ interest to many users.
       </p>
 <ul>
     
@@ -298,15 +297,15 @@ document.write("Last Published: " + document.lastModified);
     </li>
     
 <li>
-    	It is written in Java and is supported on all major platforms.
+    	Hadoop is written in Java and is supported on all major platforms.
     </li>
     
 <li>
-    	Supports <em>shell like commands</em> to interact with HDFS directly.
+    	Hadoop supports shell-like commands to interact with HDFS directly.
     </li>
     
 <li>
-    	Namenode and Datanodes have built in web servers that makes it
+    	The NameNode and Datanodes have built in web servers that makes it
     	easy to check current status of the cluster.
     </li>
     
@@ -316,47 +315,41 @@ document.write("Last Published: " + document.lastModified);
       <ul>
     	
 <li>
-    		
-<em>File permissions and authentication.</em>
-    	
-</li>
+    		File permissions and authentication.
+    	</li>
     	
 <li>
     		
-<em>Rack awareness</em> : to take a node's physical location into
+<em>Rack awareness</em>: to take a node's physical location into
     		account while scheduling tasks and allocating storage.
     	</li>
     	
 <li>
-    		
-<em>Safemode</em> : an administrative mode for maintanance.
+    		Safemode: an administrative mode for maintenance.
     	</li>
     	
 <li>
     		
-<em>fsck</em> : an utility to diagnose health of the filesystem, to
+<span class="codefrag">fsck</span>: a utility to diagnose health of the file system, to
     		find missing files or blocks.
     	</li>
     	
 <li>
-    		
-<em>Rebalancer</em> : tool to balance the cluster when the data is
-    		unevenly distributed among datanodes.
+    		Rebalancer: tool to balance the cluster when the data is
+    		unevenly distributed among DataNodes.
     	</li>
     	
 <li>
-    		
-<em>Upgrade and Rollback</em> : after a software upgrade, 
+    		Upgrade and rollback: after a software upgrade, 
             it is possible to
     		rollback to HDFS' state before the upgrade in case of unexpected
     		problems.
     	</li>
     	
 <li>
-    		
-<em>Secondary Namenode</em> : performs periodic checkpoints of the 
+    		Secondary NameNode: performs periodic checkpoints of the 
     		namespace and helps keep the size of file containing log of HDFS 
-    		modifications within certain limits at the Namenode.
+    		modifications within certain limits at the NameNode.
     	</li>
       
 </ul>
@@ -365,7 +358,7 @@ document.write("Last Published: " + document.lastModified);
     
 </ul>
 </div> 
-<a name="N10083"></a><a name="Pre-requisites"></a>
+<a name="N1006B"></a><a name="Pre-requisites"></a>
 <h2 class="h3"> Pre-requisites </h2>
 <div class="section">
 <p>
@@ -376,7 +369,7 @@ document.write("Last Published: " + document.lastModified);
  	
 <li>
  		
-<a href="quickstart.html">Hadoop Quickstart</a>
+<a href="quickstart.html">Hadoop Quick Start</a>
  		for first-time users.
  	</li>
  	
@@ -388,49 +381,48 @@ document.write("Last Published: " + document.lastModified);
     
 </ul>
 <p>
- 	The rest of document assumes the user is able to set up and run a
- 	HDFS with at least one Datanode. For the purpose of this document,
- 	both Namenode and Datanode could be running on the same physical
+ 	The rest of this document assumes the user is able to set up and run a
+ 	HDFS with at least one DataNode. For the purpose of this document,
+ 	both the NameNode and DataNode could be running on the same physical
  	machine.	
     </p>
 </div> 
-<a name="N100A1"></a><a name="Web+Interface"></a>
+<a name="N10089"></a><a name="Web+Interface"></a>
 <h2 class="h3"> Web Interface </h2>
 <div class="section">
 <p>
- 	Namenode and Datanode each run an internal web server in order to
+ 	NameNode and DataNode each run an internal web server in order to
  	display basic information about the current status of the cluster.
- 	With the default configuration, namenode front page is at
- 	<span class="codefrag">http://namenode:50070/</span> .
- 	It lists the datanodes in the cluster and basic stats of the
+ 	With the default configuration, the NameNode front page is at
+ 	<span class="codefrag">http://namenode-name:50070/</span>.
+ 	It lists the DataNodes in the cluster and basic statistics of the
  	cluster. The web interface can also be used to browse the file
- 	system (using "Browse the file system" link on the Namenode front
+ 	system (using "Browse the file system" link on the NameNode front
  	page).
  </p>
 </div> 
-<a name="N100AE"></a><a name="Shell+Commands"></a>
+<a name="N10096"></a><a name="Shell+Commands"></a>
 <h2 class="h3">Shell Commands</h2>
 <div class="section">
 <p>
-      Hadoop includes various "shell-like" commands that directly
+      Hadoop includes various shell-like commands that directly
       interact with HDFS and other file systems that Hadoop supports.
       The command
       <span class="codefrag">bin/hadoop fs -help</span>
       lists the commands supported by Hadoop
-      shell. Further,
-      <span class="codefrag">bin/hadoop fs -help command</span>
-      displays more detailed help on a command. The commands support
-      most of the normal filesystem operations like copying files,
+      shell. Furthermore, the command
+      <span class="codefrag">bin/hadoop fs -help command-name</span>
+      displays more detailed help for a command. These commands support
+      most of the normal files ystem operations like copying files,
       changing file permissions, etc. It also supports a few HDFS
       specific operations like changing replication of files.
      </p>
-<a name="N100BD"></a><a name="DFSAdmin+Command"></a>
+<a name="N100A5"></a><a name="DFSAdmin+Command"></a>
 <h3 class="h4"> DFSAdmin Command </h3>
 <p>
-   	
-<span class="codefrag">'bin/hadoop dfsadmin'</span>
+   	The <span class="codefrag">bin/hadoop dfsadmin</span>
    	command supports a few HDFS administration related operations.
-   	<span class="codefrag">bin/hadoop dfsadmin -help</span>
+   	The <span class="codefrag">bin/hadoop dfsadmin -help</span> command
    	lists all the commands currently supported. For e.g.:
    </p>
 <ul>
@@ -438,15 +430,15 @@ document.write("Last Published: " + document.lastModified);
 <li>
    	    
 <span class="codefrag">-report</span>
-   	    : reports basic stats of HDFS. Some of this information is
-   	    also available on the Namenode front page.
+   	    : reports basic statistics of HDFS. Some of this information is
+   	    also available on the NameNode front page.
    	</li>
    	
 <li>
    		
 <span class="codefrag">-safemode</span>
    		: though usually not required, an administrator can manually enter
-   		or leave <em>safemode</em>.
+   		or leave Safemode.
    	</li>
    	
 <li>
@@ -460,32 +452,32 @@ document.write("Last Published: " + document.lastModified);
    	  For command usage, see <a href="commands_manual.html#dfsadmin">dfsadmin command</a>.
    	</p>
 </div> 
-<a name="N100ED"></a><a name="Secondary+Namenode"></a>
-<h2 class="h3"> Secondary Namenode </h2>
+<a name="N100D2"></a><a name="Secondary+NameNode"></a>
+<h2 class="h3"> Secondary NameNode </h2>
 <div class="section">
 <p>
-     Namenode stores modifications to the file system as a log
+     The NameNode stores modifications to the file system as a log
      appended to a native file system file (<span class="codefrag">edits</span>). 
-   	When a Namenode starts up, it reads HDFS state from an image
-   	file (<span class="codefrag">fsimage</span>) and then applies <em>edits</em> from 
-    edits log file. It then writes new HDFS state to (<span class="codefrag">fsimage</span>)
+   	When a NameNode starts up, it reads HDFS state from an image
+   	file (<span class="codefrag">fsimage</span>) and then applies edits from the
+    edits log file. It then writes new HDFS state to the <span class="codefrag">fsimage</span>
     and starts normal
-   	operation with an empty edits file. Since namenode merges
+   	operation with an empty edits file. Since NameNode merges
    	<span class="codefrag">fsimage</span> and <span class="codefrag">edits</span> files only during start up, 
-    edits file could get very large over time on a large cluster. 
-    Another side effect of larger edits file is that next 
-    restart of Namenade takes longer.
+    the edits log file could get very large over time on a busy cluster. 
+    Another side effect of a larger edits file is that next 
+    restart of NameNode takes longer.
    </p>
 <p>
-     The secondary namenode merges fsimage and edits log periodically
-     and keeps edits log size with in a limit. It is usually run on a
-     different machine than the primary Namenode since its memory requirements
-     are on the same order as the primary namemode. The secondary
-     namenode is started by <span class="codefrag">bin/start-dfs.sh</span> on the nodes 
+     The secondary NameNode merges the fsimage and the edits log files periodically
+     and keeps edits log size within a limit. It is usually run on a
+     different machine than the primary NameNode since its memory requirements
+     are on the same order as the primary NameNode. The secondary
+     NameNode is started by <span class="codefrag">bin/start-dfs.sh</span> on the nodes 
      specified in <span class="codefrag">conf/masters</span> file.
    </p>
 <p>
-     The start of the checkpoint process on the secondary name-node is 
+     The start of the checkpoint process on the secondary NameNode is 
      controlled by two configuration parameters.
    </p>
 <ul>
@@ -493,68 +485,68 @@ document.write("Last Published: " + document.lastModified);
 <li>
         
 <span class="codefrag">fs.checkpoint.period</span>, set to 1 hour by default, specifies
-        the maximal delay between two consecutive checkpoints, and 
+        the maximum delay between two consecutive checkpoints, and 
       </li>
       
 <li>
         
 <span class="codefrag">fs.checkpoint.size</span>, set to 64MB by default, defines the
         size of the edits log file that forces an urgent checkpoint even if 
-        the maximal checkpoint delay is not reached.
+        the maximum checkpoint delay is not reached.
       </li>
    
 </ul>
 <p>
-     The secondary name-node stores the latest checkpoint in a storage 
-     directory, which is structured the same way as the primary name-node's
-     storage directory. So that the checkpointed image is always ready to be
-     read by the primary name-node if necessary.
+     The secondary NameNode stores the latest checkpoint in a  
+     directory which is structured the same way as the primary NameNode's
+     directory. So that the check pointed image is always ready to be
+     read by the primary NameNode if necessary.
    </p>
 <p>
-     The latest checkpoint can be imported to the primary name-node if
+     The latest checkpoint can be imported to the primary NameNode if
      all other copies of the image and the edits files are lost.
      In order to do that one should:
    </p>
 <ul>
       
 <li>
-        create an empty storage directory specified in the 
+        Create an empty directory specified in the 
         <span class="codefrag">dfs.name.dir</span> configuration variable;
       </li>
       
 <li>
-        specify the location of the checkpoint storage directory in the 
+        Specify the location of the checkpoint directory in the 
         configuration variable <span class="codefrag">fs.checkpoint.dir</span>;
       </li>
       
 <li>
-        and start the name-node with <span class="codefrag">-importCheckpoint</span> option.
+        and start the NameNode with <span class="codefrag">-importCheckpoint</span> option.
       </li>
    
 </ul>
 <p>
-     The name-node will upload the checkpoint from the 
-     <span class="codefrag">fs.checkpoint.dir</span> directory and then save it to the name-node
-     storage directory(s) set in <span class="codefrag">dfs.name.dir</span>.
-     The name-node will fail if a legal image is contained in 
+     The NameNode will upload the checkpoint from the 
+     <span class="codefrag">fs.checkpoint.dir</span> directory and then save it to the NameNode
+     directory(s) set in <span class="codefrag">dfs.name.dir</span>.
+     The NameNode will fail if a legal image is contained in 
      <span class="codefrag">dfs.name.dir</span>.
-     The name-node verifies that the image in <span class="codefrag">fs.checkpoint.dir</span> is
+     The NameNode verifies that the image in <span class="codefrag">fs.checkpoint.dir</span> is
      consistent, but does not modify it in any way.
    </p>
 <p>
-     For command usage, see <a href="commands_manual.html#secondarynamenode">secondarynamenode command</a>.
+     For command usage, see <a href="commands_manual.html#secondarynamenode"><span class="codefrag">secondarynamenode</span> command</a>.
    </p>
 </div> 
-<a name="N10155"></a><a name="Rebalancer"></a>
+<a name="N10139"></a><a name="Rebalancer"></a>
 <h2 class="h3"> Rebalancer </h2>
 <div class="section">
 <p>
       HDFS data might not always be be placed uniformly across the
-      datanode. One common reason is addition of new datanodes to an
-      existing cluster. While placing new <em>blocks</em> (data for a file is
-      stored as a series of blocks), Namenode considers various
-      parameters before choosing the datanodes to receive these blocks.
-      Some of the considerations are : 
+      DataNode. One common reason is addition of new DataNodes to an
+      existing cluster. While placing new blocks (data for a file is
+      stored as a series of blocks), NameNode considers various
+      parameters before choosing the DataNodes to receive these blocks.
+      Some of the considerations are: 
     </p>
 <ul>
       
@@ -575,16 +567,16 @@ document.write("Last Published: " + document.lastModified);
       </li>
       
 <li>
-        Spread HDFS data uniformly across the datanodes in the cluster.
+        Spread HDFS data uniformly across the DataNodes in the cluster.
       </li>
       
 </ul>
 <p>
       Due to multiple competing considerations, data might not be
-      uniformly placed across the datanodes.
+      uniformly placed across the DataNodes.
       HDFS provides a tool for administrators that analyzes block
-      placement and relanaces data across the datnodes. A brief
-      adminstrator's guide for rebalancer as a
+      placement and rebalanaces data across the DataNode. A brief
+      administrator's guide for rebalancer as a
       <a href="http://issues.apache.org/jira/secure/attachment/12368261/RebalanceDesign6.pdf">PDF</a>
       is attached to
       <a href="http://issues.apache.org/jira/browse/HADOOP-1652">HADOOP-1652</a>.
@@ -593,64 +585,65 @@ document.write("Last Published: " + document.lastModified);
      For command usage, see <a href="commands_manual.html#balancer">balancer command</a>.
    </p>
 </div> 
-<a name="N10183"></a><a name="Rack+Awareness"></a>
+<a name="N10164"></a><a name="Rack+Awareness"></a>
 <h2 class="h3"> Rack Awareness </h2>
 <div class="section">
 <p>
-      Typically large Hadoop clusters are arranged in <em>racks</em> and
+      Typically large Hadoop clusters are arranged in racks and
       network traffic between different nodes with in the same rack is
       much more desirable than network traffic across the racks. In
-      addition Namenode tries to place replicas of block on
+      addition NameNode tries to place replicas of block on
       multiple racks for improved fault tolerance. Hadoop lets the
-      cluster administrators decide which <em>rack</em> a node belongs to
+      cluster administrators decide which rack a node belongs to
       through configuration variable <span class="codefrag">dfs.network.script</span>. When this
       script is configured, each node runs the script to determine its
-      <em>rackid</em>. A default installation assumes all the nodes belong to
+      rack id. A default installation assumes all the nodes belong to
       the same rack. This feature and configuration is further described
       in <a href="http://issues.apache.org/jira/secure/attachment/12345251/Rack_aware_HDFS_proposal.pdf">PDF</a>
       attached to 
       <a href="http://issues.apache.org/jira/browse/HADOOP-692">HADOOP-692</a>.
     </p>
 </div> 
-<a name="N101A1"></a><a name="Safemode"></a>
+<a name="N10179"></a><a name="Safemode"></a>
 <h2 class="h3"> Safemode </h2>
 <div class="section">
 <p>
-      During start up Namenode loads the filesystem state from
-      <em>fsimage</em> and <em>edits</em> log file. It then waits for datanodes
+      During start up the NameNode loads the file system state from the
+      fsimage  and the edits log file. It then waits for DataNodes
       to report their blocks so that it does not prematurely start
       replicating the blocks though enough replicas already exist in the
-      cluster. During this time Namenode stays in <em>safemode</em>. A 
-      <em>Safemode</em>
-      for Namenode is essentially a read-only mode for the HDFS cluster,
-      where it does not allow any modifications to filesystem or blocks.
-      Normally Namenode gets out of safemode automatically at
-      the beginning. If required, HDFS could be placed in safemode explicitly
-      using <span class="codefrag">'bin/hadoop dfsadmin -safemode'</span> command. Namenode front
-      page shows whether safemode is on or off. A more detailed
+      cluster. During this time NameNode stays in Safemode. 
+      Safemode
+      for the NameNode is essentially a read-only mode for the HDFS cluster,
+      where it does not allow any modifications to file system or blocks.
+      Normally the NameNode leaves Safemode automatically after the DataNodes
+      have reported that most file system blocks are available. 
+      If required, HDFS could be placed in Safemode explicitly
+      using <span class="codefrag">'bin/hadoop dfsadmin -safemode'</span> command. NameNode front
+      page shows whether Safemode is on or off. A more detailed
       description and configuration is maintained as JavaDoc for
       <a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/dfs/NameNode.html#setSafeMode(org.apache.hadoop.dfs.FSConstants.SafeModeAction)"><span class="codefrag">setSafeMode()</span></a>.
     </p>
 </div> 
-<a name="N101BF"></a><a name="Fsck"></a>
-<h2 class="h3"> Fsck </h2>
+<a name="N1018B"></a><a name="fsck"></a>
+<h2 class="h3"> fsck </h2>
 <div class="section">
 <p>    
-      HDFS supports <span class="codefrag">fsck</span> command to check for various 
+      HDFS supports the <span class="codefrag">fsck</span> command to check for various 
       inconsistencies.
       It it is designed for reporting problems with various
-      files, for e.g. missing blocks for a file or under replicated
-      blocks. Unlike a traditional fsck utility for native filesystems,
-      this command does not correct the errors it detects. Normally Namenode
+      files, for example, missing blocks for a file or under-replicated
+      blocks. Unlike a traditional <span class="codefrag">fsck</span> utility for native file systems,
+      this command does not correct the errors it detects. Normally NameNode
       automatically corrects most of the recoverable failures. By default
-      fsck ignores open files but provides an option to select during reporting.
-      HDFS' fsck is not a
+      <span class="codefrag">fsck</span> ignores open files but provides an option to select all files during reporting.
+      The HDFS <span class="codefrag">fsck</span> command is not a
       Hadoop shell command. It can be run as '<span class="codefrag">bin/hadoop fsck</span>'.
-      For command usage, see <a href="commands_manual.html#fsck">fsck command</a>. 
-      Fsck can be run on the whole filesystem or on a subset of files.
+      For command usage, see <a href="commands_manual.html#fsck"><span class="codefrag">fsck</span> command</a>. 
+      <span class="codefrag">fsck</span> can be run on the whole file system or on a subset of files.
      </p>
 </div> 
-<a name="N101D3"></a><a name="Upgrade+and+Rollback"></a>
+<a name="N101AD"></a><a name="Upgrade+and+Rollback"></a>
 <h2 class="h3"> Upgrade and Rollback </h2>
 <div class="section">
 <p>
@@ -660,14 +653,14 @@ document.write("Last Published: " + document.lastModified);
       not discovered earlier. In any non-trivial HDFS installation, it
       is not an option to loose any data, let alone to restart HDFS from
       scratch. HDFS allows administrators to go back to earlier version
-      of Hadoop and <em>roll back</em> the cluster to the state it was in 
+      of Hadoop and rollback the cluster to the state it was in 
       before
       the upgrade. HDFS upgrade is described in more detail in 
       <a href="http://wiki.apache.org/hadoop/Hadoop%20Upgrade">upgrade wiki</a>.
       HDFS can have one such backup at a time. Before upgrading,
       administrators need to remove existing backup using <span class="codefrag">bin/hadoop
       dfsadmin -finalizeUpgrade</span> command. The following
-      briefly describes typical upgrade procedure : 
+      briefly describes the typical upgrade procedure: 
      </p>
 <ul>
       
@@ -690,7 +683,7 @@ document.write("Last Published: " + document.lastModified);
         considered working well (may be after a few days of operation),
         finalize the upgrade. Note that until the cluster is finalized,
         deleting the files that existed before the upgrade does not free
-        up real disk space on the datanodes.
+        up real disk space on the DataNodes.
       </li>
       
 <li>
@@ -709,52 +702,51 @@ document.write("Last Published: " + document.lastModified);
       
 </ul>
 </div> 
-<a name="N10214"></a><a name="File+Permissions+and+Security"></a>
+<a name="N101EB"></a><a name="File+Permissions+and+Security"></a>
 <h2 class="h3"> File Permissions and Security </h2>
 <div class="section">
 <p>           
       The file permissions are designed to be similar to file permissions on
       other familiar platforms like Linux. Currently, security is limited
-      to simple file permissions. The user that starts Namenode is
-      treated as the <em>super user</em> for HDFS. Future versions of HDFS will
+      to simple file permissions. The user that starts NameNode is
+      treated as the superuser for HDFS. Future versions of HDFS will
       support network authentication protocols like Kerberos for user
       authentication and encryption of data transfers. The details are discussed in the 
-      <a href="hdfs_permissions_guide.html"><em>Permissions User and Administrator Guide</em></a>.
+      <a href="hdfs_permissions_guide.html">Permissions User and Administrator Guide</a>.
      </p>
 </div> 
-<a name="N10226"></a><a name="Scalability"></a>
+<a name="N101F9"></a><a name="Scalability"></a>
 <h2 class="h3"> Scalability </h2>
 <div class="section">
 <p>
       Hadoop currently runs on clusters with thousands of nodes.
-      <a href="http://wiki.apache.org/hadoop/PoweredBy">PoweredBy Hadoop</a>
+      <a href="http://wiki.apache.org/hadoop/PoweredBy">Powered By Hadoop</a>
       lists some of the organizations that deploy Hadoop on large
-      clusters. HDFS has one Namenode for each cluster. Currently
-      the total memory available on Namenode is the primary scalability
+      clusters. HDFS has one NameNode for each cluster. Currently
+      the total memory available on NameNode is the primary scalability
       limitation. On very large clusters, increasing average size of
       files stored in HDFS helps with increasing cluster size without
-      increasing memory requirements on Namenode.
+      increasing memory requirements on NameNode.
    
       The default configuration may not suite very large clustes.
       <a href="http://wiki.apache.org/hadoop/FAQ">Hadoop FAQ</a> page lists
       suggested configuration improvements for large Hadoop clusters.
      </p>
 </div> 
-<a name="N10238"></a><a name="Related+Documentation"></a>
+<a name="N1020B"></a><a name="Related+Documentation"></a>
 <h2 class="h3"> Related Documentation </h2>
 <div class="section">
 <p>
-      This user guide is intended to be a good starting point for
-      working with HDFS. While it continues to improve,
+      This user guide is a good starting point for
+      working with HDFS. While the user guide continues to improve,
       there is a large wealth of documentation about Hadoop and HDFS.
-      The following lists starting points for further exploration :
+      The following list is a starting point for further exploration:
       </p>
 <ul>
       
 <li>
         
-<a href="http://hadoop.apache.org/">Hadoop Home Page</a>
-        : the start page for everything Hadoop.
+<a href="http://hadoop.apache.org/">Hadoop Home Page</a>: The start page for everything Hadoop.
       </li>
       
 <li>

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 5 - 5
docs/hdfs_user_guide.pdf


+ 32 - 32
src/docs/src/documentation/content/xdocs/hdfs_design.xml

@@ -67,7 +67,7 @@
       <section> 
         <title> Simple Coherency Model </title>
         <p>
-        HDFS applications need a write-once-read-many access model for files. A file once created, written, and closed need not be changed. This assumption simplifies data coherency issues and enables high throughput data access. A MapReduce application or a web crawler application fits perfectly with this model. There is a plan to support appending-writes to files in the future. 
+        HDFS applications need a write-once-read-many access model for files. A file once created, written, and closed need not be changed. This assumption simplifies data coherency issues and enables high throughput data access. A Map/Reduce application or a web crawler application fits perfectly with this model. There is a plan to support appending-writes to files in the future. 
         </p>
       </section>
 
@@ -90,16 +90,16 @@
 
  
     <section>
-      <title> Namenode and Datanodes </title>
+      <title> NameNode and DataNodes </title>
       <p>
-      HDFS has a master/slave architecture. An HDFS cluster consists of a single <em>Namenode</em>, a master server that manages the file system namespace and regulates access to files by clients. In addition, there are a number of <em>Datanodes</em>, usually one per node in the cluster, which manage storage attached to the nodes that they run on. HDFS exposes a file system namespace and allows user data to be stored in files. Internally, a file is split into one or more blocks and these blocks are stored in a set of Datanodes. The Namenode executes file system namespace operations like opening, closing, and renaming files and directories. It also determines the mapping of blocks to Datanodes. The Datanodes are responsible for serving read and write requests from the file system&#x2019;s clients. The Datanodes also perform block creation, deletion, and replication upon instruction from the Namenode.
+      HDFS has a master/slave architecture. An HDFS cluster consists of a single NameNode, a master server that manages the file system namespace and regulates access to files by clients. In addition, there are a number of DataNodes, usually one per node in the cluster, which manage storage attached to the nodes that they run on. HDFS exposes a file system namespace and allows user data to be stored in files. Internally, a file is split into one or more blocks and these blocks are stored in a set of DataNodes. The NameNode executes file system namespace operations like opening, closing, and renaming files and directories. It also determines the mapping of blocks to DataNodes. The DataNodes are responsible for serving read and write requests from the file system&#x2019;s clients. The DataNodes also perform block creation, deletion, and replication upon instruction from the NameNode.
       </p>
       <figure alt="HDFS Architecture" src="images/hdfsarchitecture.gif"/>
       <p>
-      The Namenode and Datanode are pieces of software designed to run on commodity machines. These machines typically run a GNU/Linux operating system (<acronym title="operating system">OS</acronym>). HDFS is built using the Java language; any machine that supports Java can run the Namenode or the Datanode software. Usage of the highly portable Java language means that HDFS can be deployed on a wide range of machines. A typical deployment has a dedicated machine that runs only the Namenode software. Each of the other machines in the cluster runs one instance of the Datanode software. The architecture does not preclude running multiple Datanodes on the same machine but in a real deployment that is rarely the case.
+      The NameNode and DataNode are pieces of software designed to run on commodity machines. These machines typically run a GNU/Linux operating system (<acronym title="operating system">OS</acronym>). HDFS is built using the Java language; any machine that supports Java can run the NameNode or the DataNode software. Usage of the highly portable Java language means that HDFS can be deployed on a wide range of machines. A typical deployment has a dedicated machine that runs only the NameNode software. Each of the other machines in the cluster runs one instance of the DataNode software. The architecture does not preclude running multiple DataNodes on the same machine but in a real deployment that is rarely the case.
       </p>
       <p>
-      The existence of a single Namenode in a cluster greatly simplifies the architecture of the system. The Namenode is the arbitrator and repository for all HDFS metadata. The system is designed in such a way that user <em>data</em> never flows through the Namenode.
+      The existence of a single NameNode in a cluster greatly simplifies the architecture of the system. The NameNode is the arbitrator and repository for all HDFS metadata. The system is designed in such a way that user data never flows through the NameNode.
       </p>
     </section>
 
@@ -111,7 +111,7 @@
       HDFS supports a traditional hierarchical file organization. A user or an application can create directories and store files inside these directories. The file system namespace hierarchy is similar to most other existing file systems; one can create and remove files, move a file from one directory to another, or rename a file. HDFS does not yet implement user quotas or access permissions. HDFS does not support hard links or soft links. However, the HDFS architecture does not preclude implementing these features.
       </p>
       <p>
-      The Namenode maintains the file system namespace. Any change to the file system namespace or its properties is recorded by the Namenode. An application can specify the number of replicas of a file that should be maintained by HDFS. The number of copies of a file is called the replication factor of that file. This information is stored by the Namenode.
+      The NameNode maintains the file system namespace. Any change to the file system namespace or its properties is recorded by the NameNode. An application can specify the number of replicas of a file that should be maintained by HDFS. The number of copies of a file is called the replication factor of that file. This information is stored by the NameNode.
       </p>
     </section>
 
@@ -123,9 +123,9 @@
       HDFS is designed to reliably store very large files across machines in a large cluster. It stores each file as a sequence of blocks; all blocks in a file except the last block are the same size. The blocks of a file are replicated for fault tolerance. The block size and replication factor are configurable per file. An application can specify the number of replicas of a file. The replication factor can be specified at file creation time and can be changed later. Files in HDFS are write-once and have strictly one writer at any time. 
       </p>
       <p>
-      The Namenode makes all decisions regarding replication of blocks. It periodically receives a <em>Heartbeat</em> and a <em>Blockreport</em> from each of the Datanodes in the cluster. Receipt of a Heartbeat implies that the Datanode is functioning properly. A Blockreport contains a list of all blocks on a Datanode. 
+      The NameNode makes all decisions regarding replication of blocks. It periodically receives a Heartbeat and a Blockreport from each of the DataNodes in the cluster. Receipt of a Heartbeat implies that the DataNode is functioning properly. A Blockreport contains a list of all blocks on a DataNode. 
     </p>
-    <figure alt="HDFS Datanodes" src="images/hdfsdatanodes.gif"/>
+    <figure alt="HDFS DataNodes" src="images/hdfsdatanodes.gif"/>
 
       <section>
         <title> Replica Placement: The First Baby Steps </title>
@@ -154,9 +154,9 @@
       </section>
 
       <section> 
-        <title> SafeMode </title>
+        <title> Safemode </title>
         <p>
-        On startup, the Namenode enters a special state called <em>Safemode</em>. Replication of data blocks does not occur when the Namenode is in the Safemode state. The Namenode receives Heartbeat and Blockreport messages from the Datanodes. A Blockreport contains the list of data blocks that a Datanode is hosting. Each block has a specified minimum number of replicas. A block is considered <em>safely replicated</em> when the minimum number of replicas of that data block has checked in with the Namenode. After a configurable percentage of safely replicated data blocks checks in with the Namenode (plus an additional 30 seconds), the Namenode exits the Safemode state. It then determines the list of data blocks (if any) that still have fewer than the specified number of replicas. The Namenode then replicates these blocks to other Datanodes.
+        On startup, the NameNode enters a special state called Safemode. Replication of data blocks does not occur when the NameNode is in the Safemode state. The NameNode receives Heartbeat and Blockreport messages from the DataNodes. A Blockreport contains the list of data blocks that a DataNode is hosting. Each block has a specified minimum number of replicas. A block is considered safely replicated when the minimum number of replicas of that data block has checked in with the NameNode. After a configurable percentage of safely replicated data blocks checks in with the NameNode (plus an additional 30 seconds), the NameNode exits the Safemode state. It then determines the list of data blocks (if any) that still have fewer than the specified number of replicas. The NameNode then replicates these blocks to other DataNodes.
         </p>
       </section>
 
@@ -165,13 +165,13 @@
     <section>
       <title> The Persistence of File System Metadata </title>
         <p>
-        The HDFS namespace is stored by the Namenode. The Namenode uses a transaction log called the <em>EditLog</em> to persistently record every change that occurs to file system <em>metadata</em>. For example, creating a new file in HDFS causes the Namenode to insert a record into the EditLog indicating this. Similarly, changing the replication factor of a file causes a new record to be inserted into the EditLog. The Namenode uses a file in its <em>local</em> host OS file system to store the EditLog. The entire file system namespace, including the mapping of blocks to files and file system properties, is stored in a file called the <em>FsImage</em>. The FsImage is stored as a file in the Namenode&#x2019;s local file system too.
+        The HDFS namespace is stored by the NameNode. The NameNode uses a transaction log called the EditLog to persistently record every change that occurs to file system metadata. For example, creating a new file in HDFS causes the NameNode to insert a record into the EditLog indicating this. Similarly, changing the replication factor of a file causes a new record to be inserted into the EditLog. The NameNode uses a file in its local host OS file system to store the EditLog. The entire file system namespace, including the mapping of blocks to files and file system properties, is stored in a file called the FsImage. The FsImage is stored as a file in the NameNode&#x2019;s local file system too.
         </p>
         <p>
-        The Namenode keeps an image of the entire file system namespace and file <em>Blockmap</em> in memory. This key metadata item is designed to be compact, such that a Namenode with 4 GB of RAM is plenty to support a huge number of files and directories. When the Namenode starts up, it reads the FsImage and EditLog from disk, applies all the transactions from the EditLog to the in-memory representation of the FsImage, and flushes out this new version into a new FsImage on disk. It can then truncate the old EditLog because its transactions have been applied to the persistent FsImage. This process is called a <em>checkpoint</em>. In the current implementation, a checkpoint only occurs when the Namenode starts up. Work is in progress to support periodic checkpointing in the near future.
+        The NameNode keeps an image of the entire file system namespace and file Blockmap in memory. This key metadata item is designed to be compact, such that a NameNode with 4 GB of RAM is plenty to support a huge number of files and directories. When the NameNode starts up, it reads the FsImage and EditLog from disk, applies all the transactions from the EditLog to the in-memory representation of the FsImage, and flushes out this new version into a new FsImage on disk. It can then truncate the old EditLog because its transactions have been applied to the persistent FsImage. This process is called a checkpoint. In the current implementation, a checkpoint only occurs when the NameNode starts up. Work is in progress to support periodic checkpointing in the near future.
         </p>
         <p>
-        The Datanode stores HDFS data in files in its local file system. The Datanode has no knowledge about HDFS files. It stores each block of HDFS data in a separate file in its local file system. The Datanode does not create all files in the same directory. Instead, it uses a heuristic to determine the optimal number of files per directory and creates subdirectories appropriately. It is not optimal to create all local files in the same directory because the local file system might not be able to efficiently support a huge number of files in a single directory. When a Datanode starts up, it scans through its local file system, generates a list of all HDFS data blocks that correspond to each of these local files and sends this report to the Namenode: this is the Blockreport. 
+        The DataNode stores HDFS data in files in its local file system. The DataNode has no knowledge about HDFS files. It stores each block of HDFS data in a separate file in its local file system. The DataNode does not create all files in the same directory. Instead, it uses a heuristic to determine the optimal number of files per directory and creates subdirectories appropriately. It is not optimal to create all local files in the same directory because the local file system might not be able to efficiently support a huge number of files in a single directory. When a DataNode starts up, it scans through its local file system, generates a list of all HDFS data blocks that correspond to each of these local files and sends this report to the NameNode: this is the Blockreport. 
         </p>
     </section>
 
@@ -179,7 +179,7 @@
     <section> 
       <title> The Communication Protocols </title>
       <p>
-      All HDFS communication protocols are layered on top of the TCP/IP protocol. A client establishes a connection to a configurable <acronym title="Transmission Control Protocol">TCP</acronym> port on the Namenode machine. It talks the <em>ClientProtocol</em> with the Namenode. The Datanodes talk to the Namenode using the <em>DatanodeProtocol</em>. A Remote Procedure Call (<acronym title="Remote Procedure Call">RPC</acronym>) abstraction wraps both the ClientProtocol and the DatanodeProtocol. By design, the Namenode never initiates any RPCs. Instead, it only responds to RPC requests issued by Datanodes or clients. 
+      All HDFS communication protocols are layered on top of the TCP/IP protocol. A client establishes a connection to a configurable <acronym title="Transmission Control Protocol">TCP</acronym> port on the NameNode machine. It talks the ClientProtocol with the NameNode. The DataNodes talk to the NameNode using the DataNode Protocol. A Remote Procedure Call (<acronym title="Remote Procedure Call">RPC</acronym>) abstraction wraps both the Client Protocol and the DataNode Protocol. By design, the NameNode never initiates any RPCs. Instead, it only responds to RPC requests issued by DataNodes or clients. 
       </p>
     </section>
  
@@ -187,20 +187,20 @@
     <section> 
       <title> Robustness </title>
       <p>
-      The primary objective of HDFS is to store data reliably even in the presence of failures. The three common types of failures are Namenode failures, Datanode failures and network partitions.
+      The primary objective of HDFS is to store data reliably even in the presence of failures. The three common types of failures are NameNode failures, DataNode failures and network partitions.
       </p>
  
       <section>
         <title> Data Disk Failure, Heartbeats and Re-Replication </title>
         <p>
-        Each Datanode sends a Heartbeat message to the Namenode periodically. A network partition can cause a subset of Datanodes to lose connectivity with the Namenode. The Namenode detects this condition by the absence of a Heartbeat message. The Namenode marks Datanodes without recent Heartbeats as dead and does not forward any new <acronym title="Input/Output">IO</acronym> requests to them. Any data that was registered to a dead Datanode is not available to HDFS any more. Datanode death may cause the replication factor of some blocks to fall below their specified value. The Namenode constantly tracks which blocks need to be replicated and initiates replication whenever necessary. The necessity for re-replication may arise due to many reasons: a Datanode may become unavailable, a replica may become corrupted, a hard disk on a Datanode may fail, or the replication factor of a file may be increased. 
+        Each DataNode sends a Heartbeat message to the NameNode periodically. A network partition can cause a subset of DataNodes to lose connectivity with the NameNode. The NameNode detects this condition by the absence of a Heartbeat message. The NameNode marks DataNodes without recent Heartbeats as dead and does not forward any new <acronym title="Input/Output">IO</acronym> requests to them. Any data that was registered to a dead DataNode is not available to HDFS any more. DataNode death may cause the replication factor of some blocks to fall below their specified value. The NameNode constantly tracks which blocks need to be replicated and initiates replication whenever necessary. The necessity for re-replication may arise due to many reasons: a DataNode may become unavailable, a replica may become corrupted, a hard disk on a DataNode may fail, or the replication factor of a file may be increased. 
         </p>
       </section>
 
       <section>
         <title> Cluster Rebalancing </title>
         <p>
-        The HDFS architecture is compatible with <em>data rebalancing schemes</em>. A scheme might automatically move data from one Datanode to another if the free space on a Datanode falls below a certain threshold. In the event of a sudden high demand for a particular file, a scheme might dynamically create additional replicas and rebalance other data in the cluster. These types of data rebalancing schemes are not yet implemented. 
+        The HDFS architecture is compatible with data rebalancing schemes. A scheme might automatically move data from one DataNode to another if the free space on a DataNode falls below a certain threshold. In the event of a sudden high demand for a particular file, a scheme might dynamically create additional replicas and rebalance other data in the cluster. These types of data rebalancing schemes are not yet implemented. 
         </p>
       </section>
 
@@ -208,7 +208,7 @@
         <title> Data Integrity </title>
         <p>
         <!-- XXX "checksum checking" sounds funny -->
-        It is possible that a block of data fetched from a Datanode arrives corrupted. This corruption can occur because of faults in a storage device, network faults, or buggy software. The HDFS client software implements checksum checking on the contents of HDFS files. When a client creates an HDFS file, it computes a checksum of each block of the file and stores these checksums in a separate hidden file in the same HDFS namespace. When a client retrieves file contents it verifies that the data it received from each Datanode matches the checksum stored in the associated checksum file. If not, then the client can opt to retrieve that block from another Datanode that has a replica of that block.
+        It is possible that a block of data fetched from a DataNode arrives corrupted. This corruption can occur because of faults in a storage device, network faults, or buggy software. The HDFS client software implements checksum checking on the contents of HDFS files. When a client creates an HDFS file, it computes a checksum of each block of the file and stores these checksums in a separate hidden file in the same HDFS namespace. When a client retrieves file contents it verifies that the data it received from each DataNode matches the checksum stored in the associated checksum file. If not, then the client can opt to retrieve that block from another DataNode that has a replica of that block.
         </p>
       </section>
  
@@ -216,10 +216,10 @@
       <section>
         <title> Metadata Disk Failure </title>
         <p>
-        The FsImage and the EditLog are central data structures of HDFS. A corruption of these files can cause the HDFS instance to be non-functional. For this reason, the Namenode can be configured to support maintaining multiple copies of the FsImage and EditLog. Any update to either the FsImage or EditLog causes each of the FsImages and EditLogs to get updated synchronously. This synchronous updating of multiple copies of the FsImage and EditLog may degrade the rate of namespace transactions per second that a Namenode can support. However, this degradation is acceptable because even though HDFS applications are very <em>data</em> intensive in nature, they are not <em>metadata</em> intensive. When a Namenode restarts, it selects the latest consistent FsImage and EditLog to use.
+        The FsImage and the EditLog are central data structures of HDFS. A corruption of these files can cause the HDFS instance to be non-functional. For this reason, the NameNode can be configured to support maintaining multiple copies of the FsImage and EditLog. Any update to either the FsImage or EditLog causes each of the FsImages and EditLogs to get updated synchronously. This synchronous updating of multiple copies of the FsImage and EditLog may degrade the rate of namespace transactions per second that a NameNode can support. However, this degradation is acceptable because even though HDFS applications are very data intensive in nature, they are not metadata intensive. When a NameNode restarts, it selects the latest consistent FsImage and EditLog to use.
         </p>
         <p> 
-        The Namenode machine is a single point of failure for an HDFS cluster. If the Namenode machine fails, manual intervention is necessary. Currently, automatic restart and failover of the Namenode software to another machine is not supported.
+        The NameNode machine is a single point of failure for an HDFS cluster. If the NameNode machine fails, manual intervention is necessary. Currently, automatic restart and failover of the NameNode software to another machine is not supported.
         </p>
       </section>
 
@@ -240,7 +240,7 @@
       <section>
         <title> Data Blocks </title>
         <p>
-        HDFS is designed to support very large files. Applications that are compatible with HDFS are those that deal with large data sets. These applications write their data only once but they read it one or more times and require these reads to be satisfied at streaming speeds. HDFS supports write-once-read-many semantics on files. A typical block size used by HDFS is 64 MB. Thus, an HDFS file is chopped up into 64 MB chunks, and if possible, each chunk will reside on a different Datanode.
+        HDFS is designed to support very large files. Applications that are compatible with HDFS are those that deal with large data sets. These applications write their data only once but they read it one or more times and require these reads to be satisfied at streaming speeds. HDFS supports write-once-read-many semantics on files. A typical block size used by HDFS is 64 MB. Thus, an HDFS file is chopped up into 64 MB chunks, and if possible, each chunk will reside on a different DataNode.
         </p>
       </section>
 
@@ -249,7 +249,7 @@
         <!-- XXX staging never described / referenced in its section -->
         <title> Staging </title>
         <p>
-        A client request to create a file does not reach the Namenode immediately. In fact, initially the HDFS client caches the file data into a temporary local file. Application writes are transparently redirected to this temporary local file. When the local file accumulates data worth over one HDFS block size, the client contacts the Namenode. The Namenode inserts the file name into the file system hierarchy and allocates a data block for it. The Namenode responds to the client request with the identity of the Datanode and the destination data block. Then the client flushes the block of data from the local temporary file to the specified Datanode. When a file is closed, the remaining un-flushed data in the temporary local file is transferred to the Datanode. The client then tells the Namenode that the file is closed. At this point, the Namenode commits the file creation operation into a persistent store. If the Namenode dies before the file is closed, the file is lost. 
+        A client request to create a file does not reach the NameNode immediately. In fact, initially the HDFS client caches the file data into a temporary local file. Application writes are transparently redirected to this temporary local file. When the local file accumulates data worth over one HDFS block size, the client contacts the NameNode. The NameNode inserts the file name into the file system hierarchy and allocates a data block for it. The NameNode responds to the client request with the identity of the DataNode and the destination data block. Then the client flushes the block of data from the local temporary file to the specified DataNode. When a file is closed, the remaining un-flushed data in the temporary local file is transferred to the DataNode. The client then tells the NameNode that the file is closed. At this point, the NameNode commits the file creation operation into a persistent store. If the NameNode dies before the file is closed, the file is lost. 
         </p>
         <p>
         The above approach has been adopted after careful consideration of target applications that run on HDFS. These applications need streaming writes to files. If a client writes to a remote file directly without any client side buffering, the network speed and the congestion in the network impacts throughput considerably. This approach is not without precedent. Earlier distributed file systems, e.g. <acronym title="Andrew File System">AFS</acronym>, have used client side caching to improve performance. A POSIX requirement has been relaxed to achieve higher performance of data uploads. 
@@ -259,7 +259,7 @@
       <section>
         <title> Replication Pipelining </title>
         <p>
-        When a client is writing data to an HDFS file, its data is first written to a local file as explained in the previous section. Suppose the HDFS file has a replication factor of three. When the local file accumulates a full block of user data, the client retrieves a list of Datanodes from the Namenode. This list contains the Datanodes that will host a replica of that block. The client then flushes the data block to the first Datanode. The first Datanode starts receiving the data in small portions (4 KB), writes each portion to its local repository and transfers that portion to the second Datanode in the list. The second Datanode, in turn starts receiving each portion of the data block, writes that portion to its repository and then flushes that portion to the third Datanode. Finally, the third Datanode writes the data to its local repository. Thus, a Datanode can be receiving data from the previous one in the pipeline and at the same time forwarding data to the next one in the pipeline. Thus, the data is pipelined from one Datanode to the next.
+        When a client is writing data to an HDFS file, its data is first written to a local file as explained in the previous section. Suppose the HDFS file has a replication factor of three. When the local file accumulates a full block of user data, the client retrieves a list of DataNodes from the NameNode. This list contains the DataNodes that will host a replica of that block. The client then flushes the data block to the first DataNode. The first DataNode starts receiving the data in small portions (4 KB), writes each portion to its local repository and transfers that portion to the second DataNode in the list. The second DataNode, in turn starts receiving each portion of the data block, writes that portion to its repository and then flushes that portion to the third DataNode. Finally, the third DataNode writes the data to its local repository. Thus, a DataNode can be receiving data from the previous one in the pipeline and at the same time forwarding data to the next one in the pipeline. Thus, the data is pipelined from one DataNode to the next.
         </p>
       </section>
 
@@ -274,9 +274,9 @@
       </p>
 
       <section>
-        <title> DFSShell </title>
+        <title> FS Shell </title>
         <p>
-        HDFS allows user data to be organized in the form of files and directories. It provides a commandline interface called <em>DFSShell</em> that lets a user interact with the data in HDFS. The syntax of this command set is similar to other shells (e.g. bash, csh) that users are already familiar with. Here are some sample action/command pairs:
+        HDFS allows user data to be organized in the form of files and directories. It provides a commandline interface called  FS shell that lets a user interact with the data in HDFS. The syntax of this command set is similar to other shells (e.g. bash, csh) that users are already familiar with. Here are some sample action/command pairs:
         </p>
         <table>
           <tr>
@@ -293,27 +293,27 @@
           </tr>
         </table>
         <p>
-        DFSShell is targeted for applications that need a scripting language to interact with the stored data.
+        FS shell is targeted for applications that need a scripting language to interact with the stored data.
         </p>
       </section>
 
       <section> 
         <title> DFSAdmin </title>
         <p>
-        The <em>DFSAdmin</em> command set is used for administering an HDFS cluster. These are commands that are used only by an HDFS administrator. Here are some sample action/command pairs:
+        The DFSAdmin command set is used for administering an HDFS cluster. These are commands that are used only by an HDFS administrator. Here are some sample action/command pairs:
         </p>
         <table>
           <tr>
             <th> Action </th><th> Command </th>
           </tr>
           <tr>
-            <td> Put a cluster in SafeMode </td> <td> <code>bin/hadoop dfsadmin -safemode enter</code> </td>
+            <td> Put the cluster in Safemode </td> <td> <code>bin/hadoop dfsadmin -safemode enter</code> </td>
           </tr>
           <tr>
-            <td> Generate a list of Datanodes </td> <td> <code>bin/hadoop dfsadmin -report</code> </td>
+            <td> Generate a list of DataNodes </td> <td> <code>bin/hadoop dfsadmin -report</code> </td>
           </tr>
           <tr>
-            <td> Decommission Datanode <code>datanodename</code> </td><td> <code>bin/hadoop dfsadmin -decommission datanodename</code> </td>
+            <td> Decommission DataNode <code>datanodename</code> </td><td> <code>bin/hadoop dfsadmin -decommission datanodename</code> </td>
           </tr>
         </table>
       </section>
@@ -333,7 +333,7 @@
       <section>
         <title> File Deletes and Undeletes </title>
         <p>
-        When a file is deleted by a user or an application, it is not immediately removed from HDFS.  Instead, HDFS first renames it to a file in the <code>/trash</code> directory. The file can be restored quickly as long as it remains in <code>/trash</code>. A file remains in <code>/trash</code> for a configurable amount of time. After the expiry of its life in <code>/trash</code>, the Namenode deletes the file from the HDFS namespace. The deletion of a file causes the blocks associated with the file to be freed. Note that there could be an appreciable time delay between the time a file is deleted by a user and the time of the corresponding increase in free space in HDFS.
+        When a file is deleted by a user or an application, it is not immediately removed from HDFS.  Instead, HDFS first renames it to a file in the <code>/trash</code> directory. The file can be restored quickly as long as it remains in <code>/trash</code>. A file remains in <code>/trash</code> for a configurable amount of time. After the expiry of its life in <code>/trash</code>, the NameNode deletes the file from the HDFS namespace. The deletion of a file causes the blocks associated with the file to be freed. Note that there could be an appreciable time delay between the time a file is deleted by a user and the time of the corresponding increase in free space in HDFS.
         </p>
         <p>
         A user can Undelete a file after deleting it as long as it remains in the <code>/trash</code> directory. If a user wants to undelete a file that he/she has deleted, he/she can navigate the <code>/trash</code> directory and retrieve the file. The <code>/trash</code> directory contains only the latest copy of the file that was deleted. The <code>/trash</code> directory is just like any other directory with one special feature: HDFS applies specified policies to automatically delete files from this directory. The current default policy is to delete files from <code>/trash</code> that are more than 6 hours old. In the future, this policy will be configurable through a well defined interface.
@@ -343,7 +343,7 @@
       <section>
         <title> Decrease Replication Factor </title>
         <p>
-        When the replication factor of a file is reduced, the Namenode selects excess replicas that can be deleted. The next Heartbeat transfers this information to the Datanode. The Datanode then removes the corresponding blocks and the corresponding free space appears in the cluster. Once again, there might be a time delay between the completion of the <code>setReplication</code> API call and the appearance of free space in the cluster.
+        When the replication factor of a file is reduced, the NameNode selects excess replicas that can be deleted. The next Heartbeat transfers this information to the DataNode. The DataNode then removes the corresponding blocks and the corresponding free space appears in the cluster. Once again, there might be a time delay between the completion of the <code>setReplication</code> API call and the appearance of free space in the cluster.
         </p>
       </section>
     </section>

+ 14 - 14
src/docs/src/documentation/content/xdocs/hdfs_quota_admin_guide.xml

@@ -23,21 +23,21 @@
 
   <header>
     <title>
-      Hadoop DFS Name Space Quotas Administrator Guide
+      Name Space Quotas Administrator Guide
     </title>
   </header>
 
   <body>
       <p>
-      HDFS allows the administrator to set quotas on individual directories. 
+      The Hadoop Distributed File System (HDFS) allows the administrator to set quotas on individual directories. 
       Newly created directories have no associated quota. 
-      The largest quota is Long.Max_Value. A quota of one forces a directory 
+      The largest quota is <code>Long.Max_Value</code>. A quota of one forces a directory 
       to remain empty.
       </p>
 
       <p>
       The directory quota is a hard limit on the number of names in the tree 
-      rooted at that directory. File/directory creations fault if the quota 
+      rooted at that directory. File and directory creations fault if the quota 
       would be exceeded. Quotas stick to renamed directories; the rename 
       operation faults if operation would result in a quota violation. 
       The attempt to set a quota faults if the directory would be in violation 
@@ -46,9 +46,9 @@
 
       <p>
       Quotas are persistent with the fsimage. When starting, if the fsimage 
-      is immediately in violation of aquota (perhaps the fsimage was 
-      surreptitiously modified), startup operation fails with an error report. 
-      Setting/removing a quota creates a journal entry.
+      is immediately in violation of a quota (perhaps the fsimage was 
+      surreptitiously modified), the startup operation fails with an error report. 
+      Setting or removing a quota creates a journal entry.
       </p> 
 
       <p>
@@ -58,26 +58,26 @@
 
       <ul>
       <li>
-      <strong><em>dfsadmin -setquota &lt;N> &lt;directory>...&lt;directory></em></strong> 
+      <code>dfsadmin -setquota &lt;N> &lt;directory>...&lt;directory></code> 
       <br />
-      Set the quota <em></em> for each directory. Best effort for each directory,
-      with faults reported if <em>N</em> is not a positive long integer, 
+      Set the quota to be <code>N</code> for each directory. Best effort for each directory,
+      with faults reported if <code>N</code> is not a positive long integer, 
       the directory does not exist or it is a file, or the directory would 
       immediately exceed the new quota.
       </li>
   
       <li>
-      <strong><em>dfsadmin -clrquota &lt;directory>...&lt;director></em></strong><br /> 
+      <code>dfsadmin -clrquota &lt;directory>...&lt;director></code><br /> 
       Remove any quota for each directory. Best effort for each directory, 
       with faults reported if the directory does not exist or it is a file. 
       It is not a fault if the directory has no quota.
       </li>
   
       <li>
-      <strong><em>fs -count -q &lt;directory>...&lt;directory></em></strong><br />
-      With the <em>-q</em> option, also report the quota value set for each 
+      <code>fs -count -q &lt;directory>...&lt;directory></code><br />
+      With the <code>-q</code> option, also report the quota value set for each 
       directory, and the available quota remaining. If the directory does not have 
-      a quota set, the reported values are <em>none</em> and <em>inf</em>.
+      a quota set, the reported values are <code>none</code> and <code>inf</code>.
       </li>
       </ul>
    </body>

+ 118 - 119
src/docs/src/documentation/content/xdocs/hdfs_user_guide.xml

@@ -23,18 +23,18 @@
 
   <header>
     <title>
-      Hadoop DFS User Guide
+      HDFS User Guide
     </title>
   </header>
 
   <body>
     <section> <title>Purpose</title>
       <p>
- This document aims to be the starting point for users working with
+ This document is a starting point for users working with
  Hadoop Distributed File System (HDFS) either as a part of a
  <a href="http://hadoop.apache.org/">Hadoop</a>
  cluster or as a stand-alone general purpose distributed file system.
- While HDFS is designed to "just-work" in many environments, a working
+ While HDFS is designed to "just work" in many environments, a working
  knowledge of HDFS helps greatly with configuration improvements and
  diagnostics on a specific cluster.
       </p>
@@ -43,21 +43,20 @@
     <section> <title> Overview </title>
       <p>
  HDFS is the primary distributed storage used by Hadoop applications. A
- HDFS cluster primarily consists of a <em>NameNode</em> that manages the
- filesystem metadata and Datanodes that store the actual data. The
+ HDFS cluster primarily consists of a NameNode that manages the
+ file system metadata and DataNodes that store the actual data. The
  architecture of HDFS is described in detail
  <a href="hdfs_design.html">here</a>. This user guide primarily deals with 
  interaction of users and administrators with HDFS clusters. 
  The <a href="images/hdfsarchitecture.gif">diagram</a> from 
  <a href="hdfs_design.html">HDFS architecture</a> depicts 
- basic interactions among Namenode, Datanodes, and the clients. Eseentially,
- clients contact Namenode for file metadata or file modifications and perform 
- actual file I/O directly with the datanodes.
+ basic interactions among NameNode, the DataNodes, and the clients. 
+ Clients contact NameNode for file metadata or file modifications and perform 
+ actual file I/O directly with the DataNodes.
       </p>
       <p>
  The following are some of the salient features that could be of
- interest to many users. The terms in <em>italics</em>
- are described in later sections.
+ interest to many users.
       </p> 
     <ul>
     <li>
@@ -74,13 +73,13 @@
     	needs to be tuned only for very large clusters.
     </li>
     <li>
-    	It is written in Java and is supported on all major platforms.
+    	Hadoop is written in Java and is supported on all major platforms.
     </li>
     <li>
-    	Supports <em>shell like commands</em> to interact with HDFS directly.
+    	Hadoop supports shell-like commands to interact with HDFS directly.
     </li>
     <li>
-    	Namenode and Datanodes have built in web servers that makes it
+    	The NameNode and Datanodes have built in web servers that makes it
     	easy to check current status of the cluster.
     </li>
     <li>
@@ -88,33 +87,33 @@
     	The following is a subset of useful features in HDFS:
       <ul>
     	<li>
-    		<em>File permissions and authentication.</em>
+    		File permissions and authentication.
     	</li>
     	<li>
-    		<em>Rack awareness</em> : to take a node's physical location into
+    		<em>Rack awareness</em>: to take a node's physical location into
     		account while scheduling tasks and allocating storage.
     	</li>
     	<li>
-    		<em>Safemode</em> : an administrative mode for maintanance.
+    		Safemode: an administrative mode for maintenance.
     	</li>
     	<li>
-    		<em>fsck</em> : an utility to diagnose health of the filesystem, to
+    		<code>fsck</code>: a utility to diagnose health of the file system, to
     		find missing files or blocks.
     	</li>
     	<li>
-    		<em>Rebalancer</em> : tool to balance the cluster when the data is
-    		unevenly distributed among datanodes.
+    		Rebalancer: tool to balance the cluster when the data is
+    		unevenly distributed among DataNodes.
     	</li>
     	<li>
-    		<em>Upgrade and Rollback</em> : after a software upgrade, 
+    		Upgrade and rollback: after a software upgrade, 
             it is possible to
     		rollback to HDFS' state before the upgrade in case of unexpected
     		problems.
     	</li>
     	<li>
-    		<em>Secondary Namenode</em> : performs periodic checkpoints of the 
+    		Secondary NameNode: performs periodic checkpoints of the 
     		namespace and helps keep the size of file containing log of HDFS 
-    		modifications within certain limits at the Namenode.
+    		modifications within certain limits at the NameNode.
     	</li>
       </ul>
     </li>
@@ -127,7 +126,7 @@
     </p>
  	<ul>
  	<li>
- 		<a href="quickstart.html">Hadoop Quickstart</a>
+ 		<a href="quickstart.html">Hadoop Quick Start</a>
  		for first-time users.
  	</li>
  	<li>
@@ -136,56 +135,56 @@
  	</li>
     </ul>
     <p>
- 	The rest of document assumes the user is able to set up and run a
- 	HDFS with at least one Datanode. For the purpose of this document,
- 	both Namenode and Datanode could be running on the same physical
+ 	The rest of this document assumes the user is able to set up and run a
+ 	HDFS with at least one DataNode. For the purpose of this document,
+ 	both the NameNode and DataNode could be running on the same physical
  	machine.	
     </p>
      
     </section> <section> <title> Web Interface </title>
  <p>
- 	Namenode and Datanode each run an internal web server in order to
+ 	NameNode and DataNode each run an internal web server in order to
  	display basic information about the current status of the cluster.
- 	With the default configuration, namenode front page is at
- 	<code>http://namenode:50070/</code> .
- 	It lists the datanodes in the cluster and basic stats of the
+ 	With the default configuration, the NameNode front page is at
+ 	<code>http://namenode-name:50070/</code>.
+ 	It lists the DataNodes in the cluster and basic statistics of the
  	cluster. The web interface can also be used to browse the file
- 	system (using "Browse the file system" link on the Namenode front
+ 	system (using "Browse the file system" link on the NameNode front
  	page).
  </p> 
  	
     </section> <section> <title>Shell Commands</title>
  	<p>
-      Hadoop includes various "shell-like" commands that directly
+      Hadoop includes various shell-like commands that directly
       interact with HDFS and other file systems that Hadoop supports.
       The command
       <code>bin/hadoop fs -help</code>
       lists the commands supported by Hadoop
-      shell. Further,
-      <code>bin/hadoop fs -help command</code>
-      displays more detailed help on a command. The commands support
-      most of the normal filesystem operations like copying files,
+      shell. Furthermore, the command
+      <code>bin/hadoop fs -help command-name</code>
+      displays more detailed help for a command. These commands support
+      most of the normal files ystem operations like copying files,
       changing file permissions, etc. It also supports a few HDFS
       specific operations like changing replication of files.
      </p>
 
    <section> <title> DFSAdmin Command </title>
    <p>
-   	<code>'bin/hadoop dfsadmin'</code>
+   	The <code>bin/hadoop dfsadmin</code>
    	command supports a few HDFS administration related operations.
-   	<code>bin/hadoop dfsadmin -help</code>
+   	The <code>bin/hadoop dfsadmin -help</code> command
    	lists all the commands currently supported. For e.g.:
    </p>  
    	<ul>
    	<li>
    	    <code>-report</code>
-   	    : reports basic stats of HDFS. Some of this information is
-   	    also available on the Namenode front page.
+   	    : reports basic statistics of HDFS. Some of this information is
+   	    also available on the NameNode front page.
    	</li>
    	<li>
    		<code>-safemode</code>
    		: though usually not required, an administrator can manually enter
-   		or leave <em>safemode</em>.
+   		or leave Safemode.
    	</li>
    	<li>
    		<code>-finalizeUpgrade</code>
@@ -197,88 +196,88 @@
    	</p>  
    </section>
    
-   </section> <section> <title> Secondary Namenode </title>
+   </section> <section> <title> Secondary NameNode </title>
    <p>
-     Namenode stores modifications to the file system as a log
+     The NameNode stores modifications to the file system as a log
      appended to a native file system file (<code>edits</code>). 
-   	When a Namenode starts up, it reads HDFS state from an image
-   	file (<code>fsimage</code>) and then applies <em>edits</em> from 
-    edits log file. It then writes new HDFS state to (<code>fsimage</code>)
+   	When a NameNode starts up, it reads HDFS state from an image
+   	file (<code>fsimage</code>) and then applies edits from the
+    edits log file. It then writes new HDFS state to the <code>fsimage</code>
     and starts normal
-   	operation with an empty edits file. Since namenode merges
+   	operation with an empty edits file. Since NameNode merges
    	<code>fsimage</code> and <code>edits</code> files only during start up, 
-    edits file could get very large over time on a large cluster. 
-    Another side effect of larger edits file is that next 
-    restart of Namenade takes longer.
+    the edits log file could get very large over time on a busy cluster. 
+    Another side effect of a larger edits file is that next 
+    restart of NameNode takes longer.
    </p>
    <p>
-     The secondary namenode merges fsimage and edits log periodically
-     and keeps edits log size with in a limit. It is usually run on a
-     different machine than the primary Namenode since its memory requirements
-     are on the same order as the primary namemode. The secondary
-     namenode is started by <code>bin/start-dfs.sh</code> on the nodes 
+     The secondary NameNode merges the fsimage and the edits log files periodically
+     and keeps edits log size within a limit. It is usually run on a
+     different machine than the primary NameNode since its memory requirements
+     are on the same order as the primary NameNode. The secondary
+     NameNode is started by <code>bin/start-dfs.sh</code> on the nodes 
      specified in <code>conf/masters</code> file.
    </p>
    <p>
-     The start of the checkpoint process on the secondary name-node is 
+     The start of the checkpoint process on the secondary NameNode is 
      controlled by two configuration parameters.
    </p>
    <ul>
       <li>
         <code>fs.checkpoint.period</code>, set to 1 hour by default, specifies
-        the maximal delay between two consecutive checkpoints, and 
+        the maximum delay between two consecutive checkpoints, and 
       </li>
       <li>
         <code>fs.checkpoint.size</code>, set to 64MB by default, defines the
         size of the edits log file that forces an urgent checkpoint even if 
-        the maximal checkpoint delay is not reached.
+        the maximum checkpoint delay is not reached.
       </li>
    </ul>
    <p>
-     The secondary name-node stores the latest checkpoint in a storage 
-     directory, which is structured the same way as the primary name-node's
-     storage directory. So that the checkpointed image is always ready to be
-     read by the primary name-node if necessary.
+     The secondary NameNode stores the latest checkpoint in a  
+     directory which is structured the same way as the primary NameNode's
+     directory. So that the check pointed image is always ready to be
+     read by the primary NameNode if necessary.
    </p>
    <p>
-     The latest checkpoint can be imported to the primary name-node if
+     The latest checkpoint can be imported to the primary NameNode if
      all other copies of the image and the edits files are lost.
      In order to do that one should:
    </p>
    <ul>
       <li>
-        create an empty storage directory specified in the 
+        Create an empty directory specified in the 
         <code>dfs.name.dir</code> configuration variable;
       </li>
       <li>
-        specify the location of the checkpoint storage directory in the 
+        Specify the location of the checkpoint directory in the 
         configuration variable <code>fs.checkpoint.dir</code>;
       </li>
       <li>
-        and start the name-node with <code>-importCheckpoint</code> option.
+        and start the NameNode with <code>-importCheckpoint</code> option.
       </li>
    </ul>
    <p>
-     The name-node will upload the checkpoint from the 
-     <code>fs.checkpoint.dir</code> directory and then save it to the name-node
-     storage directory(s) set in <code>dfs.name.dir</code>.
-     The name-node will fail if a legal image is contained in 
+     The NameNode will upload the checkpoint from the 
+     <code>fs.checkpoint.dir</code> directory and then save it to the NameNode
+     directory(s) set in <code>dfs.name.dir</code>.
+     The NameNode will fail if a legal image is contained in 
      <code>dfs.name.dir</code>.
-     The name-node verifies that the image in <code>fs.checkpoint.dir</code> is
+     The NameNode verifies that the image in <code>fs.checkpoint.dir</code> is
      consistent, but does not modify it in any way.
    </p>
    <p>
-     For command usage, see <a href="commands_manual.html#secondarynamenode">secondarynamenode command</a>.
+     For command usage, see <a href="commands_manual.html#secondarynamenode"><code>secondarynamenode</code> command</a>.
    </p>
    
    </section> <section> <title> Rebalancer </title>
     <p>
       HDFS data might not always be be placed uniformly across the
-      datanode. One common reason is addition of new datanodes to an
-      existing cluster. While placing new <em>blocks</em> (data for a file is
-      stored as a series of blocks), Namenode considers various
-      parameters before choosing the datanodes to receive these blocks.
-      Some of the considerations are : 
+      DataNode. One common reason is addition of new DataNodes to an
+      existing cluster. While placing new blocks (data for a file is
+      stored as a series of blocks), NameNode considers various
+      parameters before choosing the DataNodes to receive these blocks.
+      Some of the considerations are: 
     </p>
       <ul>
       <li>
@@ -295,15 +294,15 @@
         reduced.
       </li>
       <li>
-        Spread HDFS data uniformly across the datanodes in the cluster.
+        Spread HDFS data uniformly across the DataNodes in the cluster.
       </li>
       </ul>
     <p>
       Due to multiple competing considerations, data might not be
-      uniformly placed across the datanodes.
+      uniformly placed across the DataNodes.
       HDFS provides a tool for administrators that analyzes block
-      placement and relanaces data across the datnodes. A brief
-      adminstrator's guide for rebalancer as a
+      placement and rebalanaces data across the DataNode. A brief
+      administrator's guide for rebalancer as a
       <a href="http://issues.apache.org/jira/secure/attachment/12368261/RebalanceDesign6.pdf">PDF</a>
       is attached to
       <a href="http://issues.apache.org/jira/browse/HADOOP-1652">HADOOP-1652</a>.
@@ -314,15 +313,15 @@
     
    </section> <section> <title> Rack Awareness </title>
     <p>
-      Typically large Hadoop clusters are arranged in <em>racks</em> and
+      Typically large Hadoop clusters are arranged in racks and
       network traffic between different nodes with in the same rack is
       much more desirable than network traffic across the racks. In
-      addition Namenode tries to place replicas of block on
+      addition NameNode tries to place replicas of block on
       multiple racks for improved fault tolerance. Hadoop lets the
-      cluster administrators decide which <em>rack</em> a node belongs to
+      cluster administrators decide which rack a node belongs to
       through configuration variable <code>dfs.network.script</code>. When this
       script is configured, each node runs the script to determine its
-      <em>rackid</em>. A default installation assumes all the nodes belong to
+      rack id. A default installation assumes all the nodes belong to
       the same rack. This feature and configuration is further described
       in <a href="http://issues.apache.org/jira/secure/attachment/12345251/Rack_aware_HDFS_proposal.pdf">PDF</a>
       attached to 
@@ -331,36 +330,37 @@
 
    </section> <section> <title> Safemode </title>
     <p>
-      During start up Namenode loads the filesystem state from
-      <em>fsimage</em> and <em>edits</em> log file. It then waits for datanodes
+      During start up the NameNode loads the file system state from the
+      fsimage  and the edits log file. It then waits for DataNodes
       to report their blocks so that it does not prematurely start
       replicating the blocks though enough replicas already exist in the
-      cluster. During this time Namenode stays in <em>safemode</em>. A 
-      <em>Safemode</em>
-      for Namenode is essentially a read-only mode for the HDFS cluster,
-      where it does not allow any modifications to filesystem or blocks.
-      Normally Namenode gets out of safemode automatically at
-      the beginning. If required, HDFS could be placed in safemode explicitly
-      using <code>'bin/hadoop dfsadmin -safemode'</code> command. Namenode front
-      page shows whether safemode is on or off. A more detailed
+      cluster. During this time NameNode stays in Safemode. 
+      Safemode
+      for the NameNode is essentially a read-only mode for the HDFS cluster,
+      where it does not allow any modifications to file system or blocks.
+      Normally the NameNode leaves Safemode automatically after the DataNodes
+      have reported that most file system blocks are available. 
+      If required, HDFS could be placed in Safemode explicitly
+      using <code>'bin/hadoop dfsadmin -safemode'</code> command. NameNode front
+      page shows whether Safemode is on or off. A more detailed
       description and configuration is maintained as JavaDoc for
       <a href="http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/dfs/NameNode.html#setSafeMode(org.apache.hadoop.dfs.FSConstants.SafeModeAction)"><code>setSafeMode()</code></a>.
     </p>
     
-   </section> <section> <title> Fsck </title>
+   </section> <section> <title> fsck </title>
      <p>    
-      HDFS supports <code>fsck</code> command to check for various 
+      HDFS supports the <code>fsck</code> command to check for various 
       inconsistencies.
       It it is designed for reporting problems with various
-      files, for e.g. missing blocks for a file or under replicated
-      blocks. Unlike a traditional fsck utility for native filesystems,
-      this command does not correct the errors it detects. Normally Namenode
+      files, for example, missing blocks for a file or under-replicated
+      blocks. Unlike a traditional <code>fsck</code> utility for native file systems,
+      this command does not correct the errors it detects. Normally NameNode
       automatically corrects most of the recoverable failures. By default
-      fsck ignores open files but provides an option to select during reporting.
-      HDFS' fsck is not a
+      <code>fsck</code> ignores open files but provides an option to select all files during reporting.
+      The HDFS <code>fsck</code> command is not a
       Hadoop shell command. It can be run as '<code>bin/hadoop fsck</code>'.
-      For command usage, see <a href="commands_manual.html#fsck">fsck command</a>. 
-      Fsck can be run on the whole filesystem or on a subset of files.
+      For command usage, see <a href="commands_manual.html#fsck"><code>fsck</code> command</a>. 
+      <code>fsck</code> can be run on the whole file system or on a subset of files.
      </p>
      
    </section> <section> <title> Upgrade and Rollback </title>
@@ -371,14 +371,14 @@
       not discovered earlier. In any non-trivial HDFS installation, it
       is not an option to loose any data, let alone to restart HDFS from
       scratch. HDFS allows administrators to go back to earlier version
-      of Hadoop and <em>roll back</em> the cluster to the state it was in 
+      of Hadoop and rollback the cluster to the state it was in 
       before
       the upgrade. HDFS upgrade is described in more detail in 
       <a href="http://wiki.apache.org/hadoop/Hadoop%20Upgrade">upgrade wiki</a>.
       HDFS can have one such backup at a time. Before upgrading,
       administrators need to remove existing backup using <code>bin/hadoop
       dfsadmin -finalizeUpgrade</code> command. The following
-      briefly describes typical upgrade procedure : 
+      briefly describes the typical upgrade procedure: 
      </p>
       <ul>
       <li>
@@ -397,7 +397,7 @@
         considered working well (may be after a few days of operation),
         finalize the upgrade. Note that until the cluster is finalized,
         deleting the files that existed before the upgrade does not free
-        up real disk space on the datanodes.
+        up real disk space on the DataNodes.
       </li>
       <li>
         If there is a need to move back to the old version,
@@ -414,23 +414,23 @@
      <p>           
       The file permissions are designed to be similar to file permissions on
       other familiar platforms like Linux. Currently, security is limited
-      to simple file permissions. The user that starts Namenode is
-      treated as the <em>super user</em> for HDFS. Future versions of HDFS will
+      to simple file permissions. The user that starts NameNode is
+      treated as the superuser for HDFS. Future versions of HDFS will
       support network authentication protocols like Kerberos for user
       authentication and encryption of data transfers. The details are discussed in the 
-      <a href="hdfs_permissions_guide.html"><em>Permissions User and Administrator Guide</em></a>.
+      <a href="hdfs_permissions_guide.html">Permissions User and Administrator Guide</a>.
      </p>
      
    </section> <section> <title> Scalability </title>
      <p>
       Hadoop currently runs on clusters with thousands of nodes.
-      <a href="http://wiki.apache.org/hadoop/PoweredBy">PoweredBy Hadoop</a>
+      <a href="http://wiki.apache.org/hadoop/PoweredBy">Powered By Hadoop</a>
       lists some of the organizations that deploy Hadoop on large
-      clusters. HDFS has one Namenode for each cluster. Currently
-      the total memory available on Namenode is the primary scalability
+      clusters. HDFS has one NameNode for each cluster. Currently
+      the total memory available on NameNode is the primary scalability
       limitation. On very large clusters, increasing average size of
       files stored in HDFS helps with increasing cluster size without
-      increasing memory requirements on Namenode.
+      increasing memory requirements on NameNode.
    
       The default configuration may not suite very large clustes.
       <a href="http://wiki.apache.org/hadoop/FAQ">Hadoop FAQ</a> page lists
@@ -439,15 +439,14 @@
      
    </section> <section> <title> Related Documentation </title>          
       <p>
-      This user guide is intended to be a good starting point for
-      working with HDFS. While it continues to improve,
+      This user guide is a good starting point for
+      working with HDFS. While the user guide continues to improve,
       there is a large wealth of documentation about Hadoop and HDFS.
-      The following lists starting points for further exploration :
+      The following list is a starting point for further exploration:
       </p>
       <ul>
       <li>
-        <a href="http://hadoop.apache.org/">Hadoop Home Page</a>
-        : the start page for everything Hadoop.
+        <a href="http://hadoop.apache.org/">Hadoop Home Page</a>: The start page for everything Hadoop.
       </li>
       <li>
         <a href="http://wiki.apache.org/hadoop/FrontPage">Hadoop Wiki</a>

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov