Преглед на файлове

HADOOP-2780. The default socket buffer size on DataNodes is 128K.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@620431 13f79535-47bb-0310-9956-ffa450edef68
Dhruba Borthakur преди 17 години
родител
ревизия
1837da3ac2
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/dfs/FSConstants.java

+ 3 - 0
CHANGES.txt

@@ -45,6 +45,9 @@ Release 0.16.1 - Unrelease
     dfs.umask to set the umask that is used by DFS.
     dfs.umask to set the umask that is used by DFS.
     (Tsz Wo (Nicholas), SZE via dhruba)
     (Tsz Wo (Nicholas), SZE via dhruba)
 
 
+    HADOOP-2780. The default socket buffer size for DataNodes is 128K.
+    (dhruba)
+
 Release 0.16.0 - 2008-02-07
 Release 0.16.0 - 2008-02-07
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
src/java/org/apache/hadoop/dfs/FSConstants.java

@@ -142,7 +142,7 @@ public interface FSConstants {
   public static final int BUFFER_SIZE = new Configuration().getInt("io.file.buffer.size", 4096);
   public static final int BUFFER_SIZE = new Configuration().getInt("io.file.buffer.size", 4096);
   //TODO mb@media-style.com: should be conf injected?
   //TODO mb@media-style.com: should be conf injected?
   public static final long DEFAULT_BLOCK_SIZE = 64 * 1024 * 1024;
   public static final long DEFAULT_BLOCK_SIZE = 64 * 1024 * 1024;
-  public static final int DEFAULT_DATA_SOCKET_SIZE = 1024 * 1024;
+  public static final int DEFAULT_DATA_SOCKET_SIZE = 128 * 1024;
 
 
   public static final int SIZE_OF_INTEGER = Integer.SIZE / Byte.SIZE;
   public static final int SIZE_OF_INTEGER = Integer.SIZE / Byte.SIZE;