You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "dhruba borthakur (JIRA)" <ji...@apache.org> on 2009/03/23 06:45:50 UTC

[jira] Created: (HADOOP-5552) HDFS does not support blocks greater than 2GB

HDFS does not support blocks greater than 2GB
---------------------------------------------

                 Key: HADOOP-5552
                 URL: https://issues.apache.org/jira/browse/HADOOP-5552
             Project: Hadoop Core
          Issue Type: Bug
          Components: dfs
            Reporter: dhruba borthakur
            Assignee: dhruba borthakur


HDFS currently does not support blocks greater than 2GB in size.

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


[jira] Commented: (HADOOP-5552) HDFS does not support blocks greater than 2GB

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-5552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688374#action_12688374 ] 

Konstantin Shvachko commented on HADOOP-5552:
---------------------------------------------

Could you please clarify what is the problem with large blocks and how you fix it.

> HDFS does not support blocks greater than 2GB
> ---------------------------------------------
>
>                 Key: HADOOP-5552
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5552
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>            Reporter: dhruba borthakur
>            Assignee: dhruba borthakur
>         Attachments: largeBlockSize1.txt
>
>
> HDFS currently does not support blocks greater than 2GB in size.

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


[jira] Commented: (HADOOP-5552) HDFS does not support blocks greater than 2GB

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-5552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688380#action_12688380 ] 

dhruba borthakur commented on HADOOP-5552:
------------------------------------------

I have not yet found all the problems yet. This is mostly a unit-test to catch this problem. The first of the fixes is a integer-to-long conversion problem:

-    int len = Math.min((int) (endOffset - offset),
-                       bytesPerChecksum*maxChunks);
+    int len = (int)Math.min(endOffset - offset,
+                       (long)(bytesPerChecksum*maxChunks));


> HDFS does not support blocks greater than 2GB
> ---------------------------------------------
>
>                 Key: HADOOP-5552
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5552
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>            Reporter: dhruba borthakur
>            Assignee: dhruba borthakur
>         Attachments: largeBlockSize1.txt
>
>
> HDFS currently does not support blocks greater than 2GB in size.

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


[jira] Updated: (HADOOP-5552) HDFS does not support blocks greater than 2GB

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-5552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-5552:
-------------------------------------

    Attachment: largeBlockSize1.txt

Here is a unit test that demonstrates that bug. Also, a simple fix (this might not be all that is required).

> HDFS does not support blocks greater than 2GB
> ---------------------------------------------
>
>                 Key: HADOOP-5552
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5552
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>            Reporter: dhruba borthakur
>            Assignee: dhruba borthakur
>         Attachments: largeBlockSize1.txt
>
>
> HDFS currently does not support blocks greater than 2GB in size.

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