HDFS-2722. HttpFs should not be using an int for block size. (harsh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1226861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5f15c292dc
commit
05ed36cd52
@ -273,10 +273,10 @@ public FSCreate(InputStream is, String path, String perm, boolean override, shor
|
|||||||
@Override
|
@Override
|
||||||
public Void execute(FileSystem fs) throws IOException {
|
public Void execute(FileSystem fs) throws IOException {
|
||||||
if (replication == -1) {
|
if (replication == -1) {
|
||||||
replication = (short) fs.getConf().getInt("dfs.replication", 3);
|
replication = fs.getDefaultReplication();
|
||||||
}
|
}
|
||||||
if (blockSize == -1) {
|
if (blockSize == -1) {
|
||||||
blockSize = fs.getConf().getInt("dfs.block.size", 67108864);
|
blockSize = fs.getDefaultBlockSize();
|
||||||
}
|
}
|
||||||
FsPermission fsPermission = getPermission(permission);
|
FsPermission fsPermission = getPermission(permission);
|
||||||
int bufferSize = fs.getConf().getInt("httpfs.buffer.size", 4096);
|
int bufferSize = fs.getConf().getInt("httpfs.buffer.size", 4096);
|
||||||
|
@ -258,6 +258,8 @@ Release 0.23.1 - UNRELEASED
|
|||||||
|
|
||||||
HDFS-2574. Remove references to some deprecated properties in conf templates and defaults files. (Joe Crobak via harsh)
|
HDFS-2574. Remove references to some deprecated properties in conf templates and defaults files. (Joe Crobak via harsh)
|
||||||
|
|
||||||
|
HDFS-2722. HttpFs should not be using an int for block size. (harsh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-2130. Switch default checksum to CRC32C. (todd)
|
HDFS-2130. Switch default checksum to CRC32C. (todd)
|
||||||
|
Loading…
Reference in New Issue
Block a user