Bladeren bron

Change default replication.max in code to be the same as in hadoop-default.xml.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@397977 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 jaren geleden
bovenliggende
commit
bd0af33209
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

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

@@ -158,7 +158,7 @@ class FSNamesystem implements FSConstants {
         lmthread.start();
         this.systemStart = System.currentTimeMillis();
 
-        this.maxReplication = conf.getInt("dfs.replication.max", 3);
+        this.maxReplication = conf.getInt("dfs.replication.max", 512);
         this.minReplication = conf.getInt("dfs.replication.min", 1);
         if( maxReplication < minReplication )
           throw new IOException(