[ 
https://issues.apache.org/jira/browse/HDFS-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750765#action_12750765
 ] 

Kan Zhang commented on HDFS-578:
--------------------------------

Attached a patch that allows users to use server default values when creating a 
file (by specifying -1). The 4 params (blockSize, bytesPerChecksum, 
writePacketSize and io.file.buffer.size) are bundled together. If the user 
chooses to use server default for blockSize, all 4 params will use server 
defaults. DFSClient caches server default values for 1 hour and fetches them 
from server only when necessary.

On a separate note, client can choose io.file.buffer.size and pass it to 
create() call, but it is actually ignored in the current implementation.

> Support for using server default values for blockSize and replication when 
> creating a file
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-578
>                 URL: https://issues.apache.org/jira/browse/HDFS-578
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client, name-node
>            Reporter: Kan Zhang
>            Assignee: Kan Zhang
>         Attachments: h578-13.patch
>
>
> This is a sub-task of HADOOP-4952. This improvement makes it possible for a 
> client to specify that it wants to use the server default values for 
> blockSize and replication params when creating a file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to