You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by jg...@apache.org on 2015/04/22 22:49:58 UTC

hadoop git commit: HADOOP-11850: Typos in hadoop-common java docs. Contributed by Surendra Singh Lilhore.

Repository: hadoop
Updated Branches:
  refs/heads/trunk a3b1d8c90 -> e54a3e1f4


HADOOP-11850: Typos in hadoop-common java docs. Contributed by Surendra Singh Lilhore.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e54a3e1f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e54a3e1f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e54a3e1f

Branch: refs/heads/trunk
Commit: e54a3e1f4f3ea4dbba14f3fab0c395a235763c54
Parents: a3b1d8c
Author: Jakob Homan <jg...@gmail.com>
Authored: Wed Apr 22 13:48:16 2015 -0700
Committer: Jakob Homan <jg...@gmail.com>
Committed: Wed Apr 22 13:48:16 2015 -0700

----------------------------------------------------------------------
 .../authentication/client/AuthenticationException.java       | 2 +-
 .../security/authentication/client/PseudoAuthenticator.java  | 2 +-
 hadoop-common-project/hadoop-common/CHANGES.txt              | 3 +++
 .../java/org/apache/hadoop/fs/BufferedFSInputStream.java     | 2 +-
 .../main/java/org/apache/hadoop/fs/ChecksumFileSystem.java   | 2 +-
 .../src/main/java/org/apache/hadoop/fs/ChecksumFs.java       | 2 +-
 .../src/main/java/org/apache/hadoop/fs/ContentSummary.java   | 2 +-
 .../src/main/java/org/apache/hadoop/fs/FSInputChecker.java   | 8 ++++----
 .../src/main/java/org/apache/hadoop/fs/FSOutputSummer.java   | 2 +-
 .../src/main/java/org/apache/hadoop/fs/FileContext.java      | 4 ++--
 .../src/main/java/org/apache/hadoop/fs/FileStatus.java       | 2 +-
 .../src/main/java/org/apache/hadoop/fs/FileSystem.java       | 2 +-
 .../src/main/java/org/apache/hadoop/fs/HarFileSystem.java    | 2 +-
 .../main/java/org/apache/hadoop/fs/shell/MoveCommands.java   | 2 +-
 .../src/main/java/org/apache/hadoop/fs/shell/PathData.java   | 2 +-
 .../main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java    | 2 +-
 .../src/main/java/org/apache/hadoop/io/Text.java             | 4 ++--
 .../main/java/org/apache/hadoop/io/WritableComparator.java   | 2 +-
 .../src/main/java/org/apache/hadoop/io/WritableUtils.java    | 2 +-
 .../apache/hadoop/io/compress/bzip2/CBZip2InputStream.java   | 2 +-
 .../hadoop/io/file/tfile/BoundedRangeFileInputStream.java    | 2 +-
 .../main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java | 2 +-
 22 files changed, 29 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticationException.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticationException.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticationException.java
index 13632fb..cb99c88 100644
--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticationException.java
+++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/AuthenticationException.java
@@ -14,7 +14,7 @@
 package org.apache.hadoop.security.authentication.client;
 
 /**
- * Exception thrown when an authentication error occurrs.
+ * Exception thrown when an authentication error occurs.
  */
 public class AuthenticationException extends Exception {
   

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/PseudoAuthenticator.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/PseudoAuthenticator.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/PseudoAuthenticator.java
index 46d94b8..29ca9cf 100644
--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/PseudoAuthenticator.java
+++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/PseudoAuthenticator.java
@@ -57,7 +57,7 @@ public class PseudoAuthenticator implements Authenticator {
    * If the response is successful it will update the authentication token.
    *
    * @param url the URl to authenticate against.
-   * @param token the authencation token being used for the user.
+   * @param token the authentication token being used for the user.
    *
    * @throws IOException if an IO error occurred.
    * @throws AuthenticationException if an authentication error occurred.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 1234ea0..3c636ec 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -198,6 +198,9 @@ Trunk (Unreleased)
     HADOOP-11781. fix race conditions and add URL support to
     smart-apply-patch.sh (Raymie Stata via aw)
 
+    HADOOP-11850. Typos in hadoop-common java docs. (Surendra Singh Lilhore
+    via jghoman)
+
   BUG FIXES
 
     HADOOP-11473. test-patch says "-1 overall" even when all checks are +1

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
index 4855e0c..2eb8b95 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
@@ -27,7 +27,7 @@ import org.apache.hadoop.classification.InterfaceStability;
 
 
 /**
- * A class optimizes reading from FSInputStream by bufferring
+ * A class that optimizes reading from FSInputStream by buffering
  */
 
 @InterfaceAudience.Private

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
index dddf0ce..3b8ecea 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
@@ -662,7 +662,7 @@ public abstract class ChecksumFileSystem extends FilterFileSystem {
    * @param inPos the position of the beginning of the bad data in the file
    * @param sums the stream open on the checksum file
    * @param sumsPos the position of the beginning of the bad data in the checksum file
-   * @return if retry is neccessary
+   * @return if retry is necessary
    */
   public boolean reportChecksumFailure(Path f, FSDataInputStream in,
                                        long inPos, FSDataInputStream sums, long sumsPos) {

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
index 7dc4a80..ba0f1dd 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
@@ -507,7 +507,7 @@ public abstract class ChecksumFs extends FilterFs {
    * @param sums the stream open on the checksum file
    * @param sumsPos the position of the beginning of the bad data in the
    *         checksum file
-   * @return if retry is neccessary
+   * @return if retry is necessary
    */
   public boolean reportChecksumFailure(Path f, FSDataInputStream in,
     long inPos, FSDataInputStream sums, long sumsPos) {

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
index ccd6960..678ce7f 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
@@ -175,7 +175,7 @@ public class ContentSummary implements Writable{
   /** Return the directory quota */
   public long getQuota() {return quota;}
   
-  /** Retuns storage space consumed */
+  /** Returns storage space consumed */
   public long getSpaceConsumed() {return spaceConsumed;}
 
   /** Returns storage space quota */

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
index a88938e..889ccc1 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
@@ -112,7 +112,7 @@ abstract public class FSInputChecker extends FSInputStream {
    * for sequential reading.
    *
    * @param pos chunkPos
-   * @param buf desitination buffer
+   * @param buf destination buffer
    * @param offset offset in buf at which to store data
    * @param len maximum number of bytes to read
    * @param checksum the data buffer into which to write checksums
@@ -123,7 +123,7 @@ abstract public class FSInputChecker extends FSInputStream {
 
   /** Return position of beginning of chunk containing pos. 
    *
-   * @param pos a postion in the file
+   * @param pos a position in the file
    * @return the starting position of the chunk which contains the byte
    */
   abstract protected long getChunkPosition(long pos);
@@ -388,7 +388,7 @@ abstract public class FSInputChecker extends FSInputStream {
    * This produces no exception and an attempt to read from
    * the stream will result in -1 indicating the end of the file.
    *
-   * @param      pos   the postion to seek to.
+   * @param      pos   the position to seek to.
    * @exception  IOException  if an I/O error occurs.
    *             ChecksumException if the chunk to seek to is corrupted
    */
@@ -423,7 +423,7 @@ abstract public class FSInputChecker extends FSInputStream {
    * <code>stm</code>
    * 
    * @param stm    an input stream
-   * @param buf    destiniation buffer
+   * @param buf    destination buffer
    * @param offset offset at which to store data
    * @param len    number of bytes to read
    * @return actual number of bytes read

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
index d2998b6..bdc5585 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
@@ -92,7 +92,7 @@ abstract public class FSOutputSummer extends OutputStream {
    * in a checksum chunk are in the buffer.  If the buffer is empty and
    * requested length is at least as large as the size of next checksum chunk
    * size, this method will checksum and write the chunk directly 
-   * to the underlying output stream.  Thus it avoids uneccessary data copy.
+   * to the underlying output stream.  Thus it avoids unnecessary data copy.
    *
    * @param      b     the data.
    * @param      off   the start offset in the data.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
index aad8be9..0b5863b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
@@ -342,7 +342,7 @@ public class FileContext {
    * 
    * @param defFS
    * @param aConf
-   * @return new FileContext with specifed FS as default.
+   * @return new FileContext with specified FS as default.
    */
   public static FileContext getFileContext(final AbstractFileSystem defFS,
                     final Configuration aConf) {
@@ -612,7 +612,7 @@ public class FileContext {
    * @param opts file creation options; see {@link Options.CreateOpts}.
    *          <ul>
    *          <li>Progress - to report progress on the operation - default null
-   *          <li>Permission - umask is applied against permisssion: default is
+   *          <li>Permission - umask is applied against permission: default is
    *          FsPermissions:getDefault()
    * 
    *          <li>CreateParent - create missing parent path; default is to not

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
index da3807d..98757a7 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
@@ -193,7 +193,7 @@ public class FileStatus implements Writable, Comparable {
 
   /**
    * Get FsPermission associated with the file.
-   * @return permssion. If a filesystem does not have a notion of permissions
+   * @return permission. If a filesystem does not have a notion of permissions
    *         or if permissions could not be determined, then default 
    *         permissions equivalent of "rwxrwxrwx" is returned.
    */

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
index 305fef2..79b7403 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
@@ -119,7 +119,7 @@ public abstract class FileSystem extends Configured implements Closeable {
   protected Statistics statistics;
 
   /**
-   * A cache of files that should be deleted when filsystem is closed
+   * A cache of files that should be deleted when filesystem is closed
    * or the JVM is exited.
    */
   private Set<Path> deleteOnExit = new TreeSet<Path>();

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java
index e89bc49..714702b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java
@@ -952,7 +952,7 @@ public class HarFileSystem extends FileSystem {
         return (ret <= 0) ? -1: (oneBytebuff[0] & 0xff);
       }
       
-      // NB: currently this method actually never executed becusae
+      // NB: currently this method actually never executed because
       // java.io.DataInputStream.read(byte[]) directly delegates to 
       // method java.io.InputStream.read(byte[], int, int).
       // However, potentially it can be invoked, so leave it intact for now.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
index 1c7316a..02a3b25 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
@@ -82,7 +82,7 @@ class MoveCommands {
     }
   }
 
-  /** move/rename paths on the same fileystem */
+  /** move/rename paths on the same filesystem */
   public static class Rename extends CommandWithDestination {
     public static final String NAME = "mv";
     public static final String USAGE = "<src> ... <dst>";

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
index f34870e..3cf3273 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
@@ -106,7 +106,7 @@ public class PathData implements Comparable<PathData> {
 
   /**
    * Validates the given Windows path.
-   * @param pathString a String of the path suppliued by the user.
+   * @param pathString a String of the path supplied by the user.
    * @return true if the URI scheme was not present in the pathString but
    * inferred; false, otherwise.
    * @throws IOException if anything goes wrong

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
index bb941c7..6900df2 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
@@ -104,7 +104,7 @@ public class ConfigUtil {
   }
   
   /**
-   * Get the value of the home dir conf value for specfied mount table
+   * Get the value of the home dir conf value for specified mount table
    * @param conf - from this conf
    * @param mountTableName - the mount table
    * @return home dir value, null if variable is not in conf

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
index 0bcaee3..a9c64ef 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
@@ -146,12 +146,12 @@ public class Text extends BinaryComparable
   }
   
   /**
-   * Finds any occurence of <code>what</code> in the backing
+   * Finds any occurrence of <code>what</code> in the backing
    * buffer, starting as position <code>start</code>. The starting
    * position is measured in bytes and the return value is in
    * terms of byte position in the buffer. The backing buffer is
    * not converted to a string for this operation.
-   * @return byte position of the first occurence of the search
+   * @return byte position of the first occurrence of the search
    *         string in the UTF-8 buffer or -1 if not found
    */
   public int find(String what, int start) {

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
index 35c6ef9..1754b8d 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
@@ -30,7 +30,7 @@ import org.apache.hadoop.util.ReflectionUtils;
 
 /** A Comparator for {@link WritableComparable}s.
  *
- * <p>This base implemenation uses the natural ordering.  To define alternate
+ * <p>This base implementation uses the natural ordering.  To define alternate
  * orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  *
  * <p>One may optimize compare-intensive operations by overriding

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
index a11a860..ae615dd 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
@@ -223,7 +223,7 @@ public final class WritableUtils  {
   }
 
   /**
-   * Make a copy of the writable object using serialiation to a buffer
+   * Make a copy of the writable object using serialization to a buffer
    * @param dst the object to copy from
    * @param src the object to copy into, which is destroyed
    * @throws IOException

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
index 57fc07b..1f7632b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
@@ -1219,7 +1219,7 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
     * Initializes the {@link #tt} array.
     *
     * This method is called when the required length of the array is known.
-    * I don't initialize it at construction time to avoid unneccessary
+    * I don't initialize it at construction time to avoid unnecessary
     * memory allocation when compressing small files.
     */
     final int[] initTT(int length) {

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
index 5fbd508..e7f4c83 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
@@ -42,7 +42,7 @@ class BoundedRangeFileInputStream extends InputStream {
    * @param in
    *          The FSDataInputStream we connect to.
    * @param offset
-   *          Begining offset of the region.
+   *          Beginning offset of the region.
    * @param length
    *          Length of the region.
    * 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e54a3e1f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java
index bd68ecb..715459a 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java
@@ -19,7 +19,7 @@
 package org.apache.hadoop.ipc;
 
 public interface FairCallQueueMXBean {
-  // Get the size of each subqueue, the index corrosponding to the priority
+  // Get the size of each subqueue, the index corresponding to the priority
   // level.
   int[] getQueueSizes();
   long[] getOverflowedCalls();