|
@@ -83,8 +83,6 @@ import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROU
|
|
|
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_KEY;
|
|
|
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_REPLICATION_DEFAULT;
|
|
|
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_REPLICATION_KEY;
|
|
|
-import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_SUPPORT_APPEND_DEFAULT;
|
|
|
-import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_SUPPORT_APPEND_KEY;
|
|
|
import static org.apache.hadoop.util.Time.now;
|
|
|
|
|
|
import java.io.BufferedWriter;
|
|
@@ -446,7 +444,6 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
NameNodeResourceChecker nnResourceChecker;
|
|
|
|
|
|
private final FsServerDefaults serverDefaults;
|
|
|
- private final boolean supportAppends;
|
|
|
private final ReplaceDatanodeOnFailure dtpReplaceDatanodeOnFailure;
|
|
|
|
|
|
private volatile SafeModeInfo safeMode; // safe mode information
|
|
@@ -754,8 +751,6 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
DFSConfigKeys.DFS_NAMENODE_MAX_BLOCKS_PER_FILE_DEFAULT);
|
|
|
this.accessTimePrecision = conf.getLong(DFS_NAMENODE_ACCESSTIME_PRECISION_KEY,
|
|
|
DFS_NAMENODE_ACCESSTIME_PRECISION_DEFAULT);
|
|
|
- this.supportAppends = conf.getBoolean(DFS_SUPPORT_APPEND_KEY, DFS_SUPPORT_APPEND_DEFAULT);
|
|
|
- LOG.info("Append Enabled: " + supportAppends);
|
|
|
|
|
|
this.dtpReplaceDatanodeOnFailure = ReplaceDatanodeOnFailure.get(conf);
|
|
|
|
|
@@ -2597,12 +2592,6 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
+ ", clientMachine=" + clientMachine);
|
|
|
}
|
|
|
boolean skipSync = false;
|
|
|
- if (!supportAppends) {
|
|
|
- throw new UnsupportedOperationException(
|
|
|
- "Append is not enabled on this NameNode. Use the " +
|
|
|
- DFS_SUPPORT_APPEND_KEY + " configuration option to enable it.");
|
|
|
- }
|
|
|
-
|
|
|
LocatedBlock lb = null;
|
|
|
FSPermissionChecker pc = getPermissionChecker();
|
|
|
checkOperation(OperationCategory.WRITE);
|