You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/08/24 21:23:45 UTC

[jira] [Commented] (HDFS-8949) hdfsOpenFile() in HDFS C API does not support block sizes larger than 2GB

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

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

We probably should add an extended HDFS file open function, which takes a pointer to a structure and the size of the structure.  That will allow us to add more parameters later.

> hdfsOpenFile() in HDFS C API does not support block sizes larger than 2GB
> -------------------------------------------------------------------------
>
>                 Key: HDFS-8949
>                 URL: https://issues.apache.org/jira/browse/HDFS-8949
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Vlad Berindei
>
> hdfsOpenFile() has an int32 blocksize parameter which restricts the size of the blocks to 2GB, while FileSystem.create accepts a long blockSize parameter.
> https://github.com/apache/hadoop/blob/c1d50a91f7c05e4aaf4655380c8dcd11703ff158/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/hdfs.h#L395 - int32 blocksize
> https://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path, boolean, int, short, long) - long blockSize



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