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

Colin Patrick McCabe commented on HDFS-9541:
--------------------------------------------

Thanks for the review, [~zhz]

bq. Should it be sizeof(struct hdfsStreamBuilder) + path_len? Since bld->path 
already has 1 byte allocated to store the \0.

OK

bq. Should be s/hdfsStreamBuilderFree/hdfsStreamBuilderBuild/ \[in the comment\]

Good catch

bq. Might be worthwhile adding another hdfsOpenFile that actually uses int64_t 
as defaultBlockSize?

I think we should avoid having lots of different "open" functions.  The builder 
lets people set just the options they want, in a more readable way.

> Add hdfsStreamBuilder API to libhdfs to support defaultBlockSizes greater 
> than 2 GB
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-9541
>                 URL: https://issues.apache.org/jira/browse/HDFS-9541
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: libhdfs
>    Affects Versions: 0.20.1
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HDFS-9541.001.patch
>
>
> We should have a new API in libhdfs which will support creating files with a 
> default block size that is more than 31 bits in size.  We should also make 
> this a builder API so that it is easy to add more options later.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to